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:
parent
5387e5ef4d
commit
b1cabc6718
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue