changeset 55507:0ad04195be0c

8224716: Javadoc of Int/Long/DoubleSummaryStatistics should mention possible overflow of count Reviewed-by: bpb
author igerasim
date Wed, 26 Jun 2019 17:06:43 -0700
parents 1761df20fa12
children a6e2d06391d6
files src/java.base/share/classes/java/util/DoubleSummaryStatistics.java src/java.base/share/classes/java/util/IntSummaryStatistics.java src/java.base/share/classes/java/util/LongSummaryStatistics.java
diffstat 3 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/util/DoubleSummaryStatistics.java	Wed Jun 26 22:16:00 2019 +0200
+++ b/src/java.base/share/classes/java/util/DoubleSummaryStatistics.java	Wed Jun 26 17:06:43 2019 -0700
@@ -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.
+ *
+ * <p>This implementation does not check for overflow of the count.
  * @since 1.8
  */
 public class DoubleSummaryStatistics implements DoubleConsumer {
--- a/src/java.base/share/classes/java/util/IntSummaryStatistics.java	Wed Jun 26 22:16:00 2019 +0200
+++ b/src/java.base/share/classes/java/util/IntSummaryStatistics.java	Wed Jun 26 17:06:43 2019 -0700
@@ -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.
  *
- * <p>This implementation does not check for overflow of the sum.
+ * <p>This implementation does not check for overflow of the count or the sum.
  * @since 1.8
  */
 public class IntSummaryStatistics implements IntConsumer {
--- a/src/java.base/share/classes/java/util/LongSummaryStatistics.java	Wed Jun 26 22:16:00 2019 +0200
+++ b/src/java.base/share/classes/java/util/LongSummaryStatistics.java	Wed Jun 26 17:06:43 2019 -0700
@@ -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.
  *
- * <p>This implementation does not check for overflow of the sum.
+ * <p>This implementation does not check for overflow of the count or the sum.
  * @since 1.8
  */
 public class LongSummaryStatistics implements LongConsumer, IntConsumer {