Skip to content

Commit

Permalink
fixed files form Math #89
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent af6d62a commit 7ff6b09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/Math/89/org/apache/commons/math/stat/Frequency.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ public String toString() {
*/
@Deprecated
public void addValue(Object v) {
if (v instanceof Comparable<?>){
addValue((Comparable<?>) v);
} else {
throw new IllegalArgumentException("Object must implement Comparable");
}
}

/**
Expand Down

0 comments on commit 7ff6b09

Please sign in to comment.