Fix some generics warnings in test code.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1539957 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dcfe8f4a37
commit
ed7710f41c
|
@ -700,8 +700,8 @@ public class CollectionUtilsTest extends MockTestCase {
|
|||
}
|
||||
}));
|
||||
assertEquals("a", resultOne.toString());
|
||||
assertNull(CollectionUtils.forAllButLastDo(strings, (Closure) null));
|
||||
assertNull(CollectionUtils.forAllButLastDo((Collection<?>) null, (Closure) null));
|
||||
assertNull(CollectionUtils.forAllButLastDo(strings, (Closure<String>) null));
|
||||
assertNull(CollectionUtils.forAllButLastDo((Collection<String>) null, (Closure<String>) null));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -714,8 +714,8 @@ public class CollectionUtilsTest extends MockTestCase {
|
|||
assertSame(lastElement, collectionB);
|
||||
assertTrue(collectionA.isEmpty() && !collectionB.isEmpty());
|
||||
|
||||
assertNull(CollectionUtils.forAllButLastDo(col.iterator(), (Closure) null));
|
||||
assertNull(CollectionUtils.forAllButLastDo((Collection<?>) null, (Closure) null));
|
||||
assertNull(CollectionUtils.forAllButLastDo(col.iterator(), (Closure<List<? extends Number>>) null));
|
||||
assertNull(CollectionUtils.forAllButLastDo((Iterator<String>) null, (Closure<String>) null));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue