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:
parent
6a24e9d8a5
commit
ebf43bf12c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue