Make tests compile with various compilers.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1493012 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0eaf4db681
commit
157aa8daeb
|
@ -700,8 +700,8 @@ public class CollectionUtilsTest extends MockTestCase {
|
|||
}
|
||||
}));
|
||||
assertEquals("a", resultOne.toString());
|
||||
assertNull(CollectionUtils.forAllButLastDo(strings, null));
|
||||
assertNull(CollectionUtils.forAllButLastDo((Collection<?>) null, null));
|
||||
assertNull(CollectionUtils.forAllButLastDo(strings, (Closure) null));
|
||||
assertNull(CollectionUtils.forAllButLastDo((Collection<?>) null, (Closure) null));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -714,8 +714,8 @@ public class CollectionUtilsTest extends MockTestCase {
|
|||
assertSame(lastElement, collectionB);
|
||||
assertTrue(collectionA.isEmpty() && !collectionB.isEmpty());
|
||||
|
||||
assertNull(CollectionUtils.forAllButLastDo(col.iterator(), null));
|
||||
assertNull(CollectionUtils.forAllButLastDo((Collection<?>) null, null));
|
||||
assertNull(CollectionUtils.forAllButLastDo(col.iterator(), (Closure) null));
|
||||
assertNull(CollectionUtils.forAllButLastDo((Collection<?>) null, (Closure) null));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue