commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r753652 - /commons/proper/lang/trunk/src/test/org/apache/commons/lang/ArrayUtilsTest.java
Date Sat, 14 Mar 2009 13:23:03 GMT
Author: sebb
Date: Sat Mar 14 13:23:02 2009
New Revision: 753652

URL: http://svn.apache.org/viewvc?rev=753652&view=rev
Log:
Avoid class cast and unused var warnings [Eclipse]

Modified:
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/ArrayUtilsTest.java

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/ArrayUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/ArrayUtilsTest.java?rev=753652&r1=753651&r2=753652&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/ArrayUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/ArrayUtilsTest.java Sat Mar
14 13:23:02 2009
@@ -335,7 +335,8 @@
         assertNotSame("java.sql.Date type", java.sql.Date.class,
             ArrayUtils.subarray(dateArray, 1, 4).getClass().getComponentType());
         try {
-            Object dummy = (java.sql.Date[])ArrayUtils.subarray(dateArray, 1,3);
+            @SuppressWarnings("unused")
+            java.sql.Date[] dummy = (java.sql.Date[])ArrayUtils.subarray(dateArray, 1,3);
             fail("Invalid downcast");
         } catch (ClassCastException e) {}
     }



Mime
View raw message