commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skes...@apache.org
Subject svn commit: r644138 - in /commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections: TestCollectionUtils.java functors/TestEqualPredicate.java
Date Thu, 03 Apr 2008 02:34:13 GMT
Author: skestle
Date: Wed Apr  2 19:34:09 2008
New Revision: 644138

URL: http://svn.apache.org/viewvc?rev=644138&view=rev
Log:
Fixed javac complier generic issues

Modified:
    commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/TestCollectionUtils.java
    commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/functors/TestEqualPredicate.java

Modified: commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/TestCollectionUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/TestCollectionUtils.java?rev=644138&r1=644137&r2=644138&view=diff
==============================================================================
--- commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/TestCollectionUtils.java
(original)
+++ commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/TestCollectionUtils.java
Wed Apr  2 19:34:09 2008
@@ -488,10 +488,10 @@
 
     @Test
     public void find() {
-        Predicate<Number> testPredicate = equalPredicate(4);
+        Predicate<Number> testPredicate = EqualPredicate.<Number>equalPredicate(4);
         Integer test = CollectionUtils.find(collectionA, testPredicate);
         assertTrue(test.equals(4));
-        testPredicate = equalPredicate(45);
+        testPredicate = EqualPredicate.<Number>equalPredicate(45);
         test = CollectionUtils.find(collectionA, testPredicate);
         assertTrue(test == null);
         assertEquals(CollectionUtils.find(null, testPredicate), null);

Modified: commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/functors/TestEqualPredicate.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/functors/TestEqualPredicate.java?rev=644138&r1=644137&r2=644138&view=diff
==============================================================================
--- commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/functors/TestEqualPredicate.java
(original)
+++ commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/functors/TestEqualPredicate.java
Wed Apr  2 19:34:09 2008
@@ -31,7 +31,7 @@
     
     @Test
     public void testPredicateTypeCanBeSuperClassOfObject() throws Exception {
-        Predicate<Number> predicate = equalPredicate(4);
+        Predicate<Number> predicate = EqualPredicate.<Number>equalPredicate(4);
         assertTrue(predicate, 4);
     }
 



Mime
View raw message