commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r754538 - in /commons/proper/lang/trunk/src/test/org/apache/commons/lang: SerializationUtilsTest.java math/NumberUtilsTest.java
Date Sat, 14 Mar 2009 21:55:11 GMT
Author: sebb
Date: Sat Mar 14 21:55:11 2009
New Revision: 754538

URL: http://svn.apache.org/viewvc?rev=754538&view=rev
Log:
Suppress warnings

Modified:
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/SerializationUtilsTest.java
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/NumberUtilsTest.java

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/SerializationUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/SerializationUtilsTest.java?rev=754538&r1=754537&r2=754538&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/SerializationUtilsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/SerializationUtilsTest.java
Sat Mar 14 21:55:11 2009
@@ -159,6 +159,7 @@
     }
 
     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 void testSerializeStreamNullNull() throws Exception {
+        // TODO NOT USED - but should it be?
         ByteArrayOutputStream streamTest = new ByteArrayOutputStream();
         try {
             SerializationUtils.serialize(null, null);
@@ -256,6 +258,7 @@
 
         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());

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/NumberUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/NumberUtilsTest.java?rev=754538&r1=754537&r2=754538&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/NumberUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/NumberUtilsTest.java Sat
Mar 14 21:55:11 2009
@@ -1120,6 +1120,7 @@
        }
     }
 
+    @SuppressWarnings("cast") // suppress instanceof warning check
     public void testConstants() {
         assertTrue(NumberUtils.LONG_ZERO instanceof Long);
         assertTrue(NumberUtils.LONG_ONE instanceof Long);



Mime
View raw message