suppressed two warnings

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@773236 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2009-05-09 15:29:55 +00:00
parent 6a24e9d8a5
commit ebf43bf12c
1 changed files with 2 additions and 1 deletions

View File

@ -190,6 +190,7 @@ public final class FrequencyTest extends TestCase {
}
// Check what happens when non-Comparable objects are added
@SuppressWarnings("deprecation")
public void testAddNonComparable(){
try {
f.addValue(new Object()); // This was previously OK
@ -248,7 +249,7 @@ public final class FrequencyTest extends TestCase {
}
}
public void testIntegerValues() {
Object obj1 = null;
Comparable<?> obj1 = null;
obj1 = Integer.valueOf(1);
Integer int1 = Integer.valueOf(1);
f.addValue(obj1);