The javadoc of the classes IntSummaryStatistics, LongSummaryStatistics, and DoubleSummaryStatistics should mention possible overflow of count.
Javadoc of classes IntSummaryStatistics and LongSummaryStatistics specify that their implementation does not check for overflow of the sum. Documentation does not mention handling overflow of the count. This can give an impression that the implementation treats the count differently, that is checks possibility of overflow.
@implNote section of the javadoc of classes IntSummaryStatistics and LongSummaryStatistics needs to be updated to explicitly state that the count is not checked for overflow. A similar update needs to be done for the javadoc of the class DoubleSummaryStatistics.
The documentation for the classes IntSummaryStatistics and LongSummaryStatistics will be edited as following:
- * <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.
The documentation for the class DoubleSummaryStatistics will have the following additon:
+ * <p>This implementation does not check for overflow of the count.
The complete change is found in the webrev: http://cr.openjdk.java.net/~igerasim/8224716/00/webrev/