Suppress warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754538 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
eaac4a7df7
commit
fd0deef560
|
@ -159,6 +159,7 @@ public class SerializationUtilsTest extends TestCase {
|
|||
}
|
||||
|
||||
public void testSerializeStreamObjNull() throws Exception {
|
||||
// TODO NOT USED - but should it be?
|
||||
ByteArrayOutputStream streamTest = new ByteArrayOutputStream();
|
||||
try {
|
||||
SerializationUtils.serialize(iMap, null);
|
||||
|
@ -169,6 +170,7 @@ public class SerializationUtilsTest extends TestCase {
|
|||
}
|
||||
|
||||
public void testSerializeStreamNullNull() throws Exception {
|
||||
// TODO NOT USED - but should it be?
|
||||
ByteArrayOutputStream streamTest = new ByteArrayOutputStream();
|
||||
try {
|
||||
SerializationUtils.serialize(null, null);
|
||||
|
@ -256,6 +258,7 @@ public class SerializationUtilsTest extends TestCase {
|
|||
|
||||
ByteArrayInputStream inTest = new ByteArrayInputStream(streamReal.toByteArray());
|
||||
try {
|
||||
@SuppressWarnings("unused")
|
||||
Object test = SerializationUtils.deserialize(inTest);
|
||||
} catch(SerializationException se) {
|
||||
assertEquals("java.lang.ClassNotFoundException: " + CLASS_NOT_FOUND_MESSAGE, se.getMessage());
|
||||
|
|
|
@ -1120,6 +1120,7 @@ public class NumberUtilsTest extends TestCase {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("cast") // suppress instanceof warning check
|
||||
public void testConstants() {
|
||||
assertTrue(NumberUtils.LONG_ZERO instanceof Long);
|
||||
assertTrue(NumberUtils.LONG_ONE instanceof Long);
|
||||
|
|
Loading…
Reference in New Issue