change generics workaround.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1361686 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2012-07-15 11:19:02 +00:00
parent 5387e5ef4d
commit b1cabc6718
1 changed files with 1 additions and 2 deletions

View File

@ -522,8 +522,7 @@ public class TestCollectionUtils extends MockTestCase {
Closure<List<? extends Number>> resultClosure = CollectionUtils.forAllDo(col, testClosure);
assertSame(testClosure, resultClosure);
assertTrue(collectionA.isEmpty() && collectionB.isEmpty());
// this is a work-around for issue COLLECTIONS-414, casting should not be necessary
resultClosure = CollectionUtils.forAllDo(col, (Closure<List<? extends Number>>) null);
resultClosure = CollectionUtils.<List<? extends Number>,Closure<List<? extends Number>>>forAllDo(col, null);
assertNull(resultClosure);
assertTrue(collectionA.isEmpty() && collectionB.isEmpty());
resultClosure = CollectionUtils.forAllDo(null, testClosure);