mirror of
https://github.com/apache/commons-math.git
synced 2025-02-07 02:29:20 +00:00
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
|
// Check what happens when non-Comparable objects are added
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public void testAddNonComparable(){
|
public void testAddNonComparable(){
|
||||||
try {
|
try {
|
||||||
f.addValue(new Object()); // This was previously OK
|
f.addValue(new Object()); // This was previously OK
|
||||||
@ -248,7 +249,7 @@ public final class FrequencyTest extends TestCase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
public void testIntegerValues() {
|
public void testIntegerValues() {
|
||||||
Object obj1 = null;
|
Comparable<?> obj1 = null;
|
||||||
obj1 = Integer.valueOf(1);
|
obj1 = Integer.valueOf(1);
|
||||||
Integer int1 = Integer.valueOf(1);
|
Integer int1 = Integer.valueOf(1);
|
||||||
f.addValue(obj1);
|
f.addValue(obj1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user