commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r643852 - in /commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor: core/TestIsInstanceOf.java example/FlexiMapExample.java
Date Wed, 02 Apr 2008 11:29:06 GMT
Author: sebb
Date: Wed Apr  2 04:29:03 2008
New Revision: 643852

URL: http://svn.apache.org/viewvc?rev=643852&view=rev
Log:
Remove unnecessary casts

Modified:
    commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/TestIsInstanceOf.java
    commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/FlexiMapExample.java

Modified: commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/TestIsInstanceOf.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/TestIsInstanceOf.java?rev=643852&r1=643851&r2=643852&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/TestIsInstanceOf.java
(original)
+++ commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/TestIsInstanceOf.java
Wed Apr  2 04:29:03 2008
@@ -65,7 +65,7 @@
         assertTrue(!p.test(null));
         assertTrue(!p.test("foo"));
         assertTrue(p.test(new Integer(3)));
-        assertTrue(p.test((Object)(new Integer(3))));
+        assertTrue(p.test(new Integer(3)));
         assertTrue(p.test((new Long(3L))));
     }
     

Modified: commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/FlexiMapExample.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/FlexiMapExample.java?rev=643852&r1=643851&r2=643852&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/FlexiMapExample.java
(original)
+++ commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/FlexiMapExample.java
Wed Apr  2 04:29:03 2008
@@ -404,7 +404,7 @@
                     /*
                      * throwing a NullPointerException when the value is null,
                      */      
-                    (UnaryFunction)throwNPE,
+                    throwNPE,
                     /*
                      * and passing through all non-null values.
                      */      
@@ -470,7 +470,7 @@
                     /*
                      * or throw a ClassCastException.
                      */      
-					(UnaryFunction)throwCCE
+					throwCCE
 				)
 			),
 			null



Mime
View raw message