This is an automated email from the ASF dual-hosted git repository. aherbert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-statistics.git
The following commit(s) were added to refs/heads/master by this push: new 9d116ce Javadoc corrections 9d116ce is described below commit 9d116ce5ae789e78c6dfcacf7e726f237c00a057 Author: Alex Herbert <aherb...@apache.org> AuthorDate: Sat Dec 23 16:31:03 2023 +0000 Javadoc corrections --- .../java/org/apache/commons/statistics/descriptive/LongSum.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/commons-statistics-descriptive/src/main/java/org/apache/commons/statistics/descriptive/LongSum.java b/commons-statistics-descriptive/src/main/java/org/apache/commons/statistics/descriptive/LongSum.java index 61efaa8..aacf80b 100644 --- a/commons-statistics-descriptive/src/main/java/org/apache/commons/statistics/descriptive/LongSum.java +++ b/commons-statistics-descriptive/src/main/java/org/apache/commons/statistics/descriptive/LongSum.java @@ -29,8 +29,6 @@ import java.math.BigInteger; * values as the count \( n \) is maintained as a {@code long}. The exact sum is * returned using {@link #getAsBigInteger()}. Methods that return {@code int} or * {@code long} primitives will raise an exception if the result overflows. - * The {@code long} value is safe up to the maximum array length for any input - * {@code int[]} data. The {@code long} value can overflow when instances are combined. * * <p>Note that the implementation does not use {@code BigInteger} arithmetic; for * performance the sum is computed using primitives to create a signed 128-bit integer. @@ -78,7 +76,7 @@ public final class LongSum implements LongStatistic, StatisticAccumulator<LongSu * * <p>The initial result is zero. * - * @return {@code IntSum} instance. + * @return {@code LongSum} instance. */ public static LongSum create() { return new LongSum(); @@ -90,7 +88,7 @@ public final class LongSum implements LongStatistic, StatisticAccumulator<LongSu * <p>When the input is an empty array, the result is zero. * * @param values Values. - * @return {@code IntSum} instance. + * @return {@code LongSum} instance. */ public static LongSum of(long... values) { final Int128 s = Int128.create();