# HG changeset patch # User igerasim # Date 1559165544 25200 # Wed May 29 14:32:24 2019 -0700 # Node ID 07352315672da1ebe306e5464d470536310ea229 # Parent ae908641e726357c67854b68830604b489e67543 [mq]: 8224716-Javadoc-of-Int-Long-DoubleSummaryStatistics-should-mention-possible-overflow-of-count diff --git a/src/java.base/share/classes/java/util/DoubleSummaryStatistics.java b/src/java.base/share/classes/java/util/DoubleSummaryStatistics.java --- a/src/java.base/share/classes/java/util/DoubleSummaryStatistics.java +++ b/src/java.base/share/classes/java/util/DoubleSummaryStatistics.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -59,6 +59,8 @@ * implementation of {@link java.util.stream.Stream#collect Stream.collect()} * provides the necessary partitioning, isolation, and merging of results for * safe and efficient parallel execution. + * + *
This implementation does not check for overflow of the count. * @since 1.8 */ public class DoubleSummaryStatistics implements DoubleConsumer { diff --git a/src/java.base/share/classes/java/util/IntSummaryStatistics.java b/src/java.base/share/classes/java/util/IntSummaryStatistics.java --- a/src/java.base/share/classes/java/util/IntSummaryStatistics.java +++ b/src/java.base/share/classes/java/util/IntSummaryStatistics.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -59,7 +59,7 @@ * provides the necessary partitioning, isolation, and merging of results for * safe and efficient parallel execution. * - *
This implementation does not check for overflow of the sum. + *
This implementation does not check for overflow of the count or the sum. * @since 1.8 */ public class IntSummaryStatistics implements IntConsumer { diff --git a/src/java.base/share/classes/java/util/LongSummaryStatistics.java b/src/java.base/share/classes/java/util/LongSummaryStatistics.java --- a/src/java.base/share/classes/java/util/LongSummaryStatistics.java +++ b/src/java.base/share/classes/java/util/LongSummaryStatistics.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -60,7 +60,7 @@ * provides the necessary partitioning, isolation, and merging of results for * safe and efficient parallel execution. * - *
This implementation does not check for overflow of the sum. + *
This implementation does not check for overflow of the count or the sum. * @since 1.8 */ public class LongSummaryStatistics implements LongConsumer, IntConsumer {