You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2012/08/03 08:26:12 UTC
svn commit: r1368802 -
/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/TestCollectionUtils.java
Author: tn
Date: Fri Aug 3 06:26:11 2012
New Revision: 1368802
URL: http://svn.apache.org/viewvc?rev=1368802&view=rev
Log:
Re-added generics fix for java 1.6.
Modified:
commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/TestCollectionUtils.java
Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/TestCollectionUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/TestCollectionUtils.java?rev=1368802&r1=1368801&r2=1368802&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/TestCollectionUtils.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/TestCollectionUtils.java Fri Aug 3 06:26:11 2012
@@ -520,7 +520,7 @@ public class TestCollectionUtils extends
Collection<List<? extends Number>> col = new ArrayList<List<? extends Number>>();
col.add(collectionA);
col.add(collectionB);
- Closure<List<? extends Number>> resultClosure = CollectionUtils.forAllDo(col, testClosure);
+ Closure<List<? extends Number>> resultClosure = CollectionUtils.<List<? extends Number>,Closure<List<? extends Number>>>forAllDo(col, testClosure);
assertSame(testClosure, resultClosure);
assertTrue(collectionA.isEmpty() && collectionB.isEmpty());
resultClosure = CollectionUtils.forAllDo(col, null);
@@ -542,7 +542,7 @@ public class TestCollectionUtils extends
Closure<List<? extends Number>> resultClosure = CollectionUtils.forAllDo(col.iterator(), testClosure);
assertSame(testClosure, resultClosure);
assertTrue(collectionA.isEmpty() && collectionB.isEmpty());
- resultClosure = CollectionUtils.forAllDo(col.iterator(), null);
+ resultClosure = CollectionUtils.<List<? extends Number>,Closure<List<? extends Number>>>forAllDo(col.iterator(), null);
assertNull(resultClosure);
assertTrue(collectionA.isEmpty() && collectionB.isEmpty());
resultClosure = CollectionUtils.forAllDo((Iterator) null, testClosure);