From 83b5df517880aba26e80013d68f2880b51036ecc Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Tue, 3 Sep 2013 19:58:03 +0000 Subject: [PATCH] [MATH-1001] Added additional clarification to javadoc wrt byte and short parameters. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1519820 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/math3/stat/Frequency.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/apache/commons/math3/stat/Frequency.java b/src/main/java/org/apache/commons/math3/stat/Frequency.java index 44255e364..9652ac52c 100644 --- a/src/main/java/org/apache/commons/math3/stat/Frequency.java +++ b/src/main/java/org/apache/commons/math3/stat/Frequency.java @@ -42,6 +42,9 @@ import org.apache.commons.math3.util.MathUtils; * Integer values (int, long, Integer, Long) are not distinguished by type -- * i.e. addValue(Long.valueOf(2)), addValue(2), addValue(2l) all have * the same effect (similarly for arguments to getCount, etc.).

+ *

NOTE: byte and short values will be implicitly converted to int values + * by the compiler, thus there are no explicit overloaded methods for these + * primitive types.

*

* char values are converted by addValue to Character instances. * As such, these values are not comparable to integral values, so attempts