commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1099422 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
Date Wed, 04 May 2011 11:44:42 GMT
Author: sebb
Date: Wed May  4 11:44:41 2011
New Revision: 1099422

URL: http://svn.apache.org/viewvc?rev=1099422&view=rev
Log:
Suppress boxing warnings that are deliberate

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

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java?rev=1099422&r1=1099421&r2=1099422&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
Wed May  4 11:44:41 2011
@@ -103,6 +103,7 @@ public class TypeUtilsTest<B> {
             List<? super String>[] list13) {
     }
 
+    @SuppressWarnings("boxing") // deliberately used here
     @Test
     public void testIsAssignable() throws SecurityException, NoSuchMethodException,
             NoSuchFieldException {
@@ -258,7 +259,7 @@ public class TypeUtilsTest<B> {
         delegateBooleanAssertion(types, 9, 8, false);
         list10 = list8;
         delegateBooleanAssertion(types, 8, 10, true);
-        list8 = (List<Object>[]) list10; // NOTE cast is required by Sun Jave, but
not by Eclipse
+        list8 = (List<Object>[]) list10; // NOTE cast is required by Sun Java, but
not by Eclipse
         delegateBooleanAssertion(types, 10, 8, false);
         // list11 = list8;
         delegateBooleanAssertion(types, 8, 11, false);
@@ -371,7 +372,7 @@ public class TypeUtilsTest<B> {
         Assert.assertTrue(TypeUtils.isAssignable(long.class, double.class));
         du = fl;
         Assert.assertTrue(TypeUtils.isAssignable(float.class, double.class));
-        // du = bo;
+        lo = in;
         Assert.assertTrue(TypeUtils.isAssignable(int.class, long.class));
         lo = new Integer(0);
         Assert.assertTrue(TypeUtils.isAssignable(Integer.class, long.class));
@@ -455,6 +456,7 @@ public class TypeUtilsTest<B> {
         }
     }
 
+    @SuppressWarnings("boxing") // boxing is deliberate here
     @Test
     public void testIsInstance() throws SecurityException, NoSuchFieldException {
         Type intComparableType = getClass().getField("intComparable").getGenericType();



Mime
View raw message