commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r890327 - /commons/proper/lang/trunk/src/test/org/apache/commons/lang3/ArrayUtilsAddTest.java
Date Mon, 14 Dec 2009 13:53:17 GMT
Author: sebb
Date: Mon Dec 14 13:53:17 2009
New Revision: 890327

URL: http://svn.apache.org/viewvc?rev=890327&view=rev
Log:
Fix Eclipse warnings

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

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang3/ArrayUtilsAddTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang3/ArrayUtilsAddTest.java?rev=890327&r1=890326&r2=890327&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang3/ArrayUtilsAddTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang3/ArrayUtilsAddTest.java Mon
Dec 14 13:53:17 2009
@@ -215,7 +215,6 @@
         assertTrue(Arrays.equals((new Float[]{new Float(3)}), newArray));
         assertEquals(Float.class, newArray.getClass().getComponentType());
 
-        numberArray1 = null;
         newArray = ArrayUtils.add(numberArray1, null);
         assertTrue(Arrays.equals((new Object[]{null}), newArray));
         assertEquals(Object.class, newArray.getClass().getComponentType());
@@ -226,7 +225,7 @@
         Object[] newArray;
         String[] stringArray1 = new String[]{"a", "b", "c"};
         String[] stringArray2 = new String[]{"1", "2", "3"};
-        newArray = ArrayUtils.addAll(stringArray1, null);
+        newArray = ArrayUtils.addAll(stringArray1, (String[]) null);
         assertNotSame(stringArray1, newArray);
         assertTrue(Arrays.equals(stringArray1, newArray));
         assertTrue(Arrays.equals((new String[]{"a", "b", "c"}), newArray));
@@ -239,7 +238,7 @@
         newArray = ArrayUtils.addAll(stringArray1, stringArray2);
         assertTrue(Arrays.equals((new String[]{"a", "b", "c", "1", "2", "3"}), newArray));
         assertEquals(String.class, newArray.getClass().getComponentType());
-        newArray = ArrayUtils.addAll(ArrayUtils.EMPTY_STRING_ARRAY, null);
+        newArray = ArrayUtils.addAll(ArrayUtils.EMPTY_STRING_ARRAY, (String[]) null);
         assertTrue(Arrays.equals(ArrayUtils.EMPTY_STRING_ARRAY, newArray));
         assertTrue(Arrays.equals((new String[]{}), newArray));
         assertEquals(String.class, newArray.getClass().getComponentType());



Mime
View raw message