Skip to content

Commit

Permalink
fixed files form Math #90
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent 7fa2933 commit ec58281
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/Math/90/org/apache/commons/math/stat/Frequency.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ public String toString() {
*/
@Deprecated
public void addValue(Object v) {
addValue((Comparable<?>) v);
}

/**
* Adds 1 to the frequency count for v.
Expand All @@ -118,6 +120,7 @@ public void addValue(Object v) {
* @param v the value to add.
* @throws IllegalArgumentException if <code>v</code> is not comparable with previous entries
*/
public void addValue(Comparable<?>v){
Object obj = v;
if (v instanceof Integer) {
obj = Long.valueOf(((Integer) v).longValue());
Expand Down

0 comments on commit ec58281

Please sign in to comment.