From ed7710f41c594c030188917cc773adbb6107383d Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Fri, 8 Nov 2013 09:25:15 +0000 Subject: [PATCH] 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 --- .../apache/commons/collections4/CollectionUtilsTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/apache/commons/collections4/CollectionUtilsTest.java b/src/test/java/org/apache/commons/collections4/CollectionUtilsTest.java index 0a6f3e0fe..40fe29a75 100644 --- a/src/test/java/org/apache/commons/collections4/CollectionUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/CollectionUtilsTest.java @@ -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) 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(), (Closure) null)); - assertNull(CollectionUtils.forAllButLastDo((Collection) null, (Closure) null)); + assertNull(CollectionUtils.forAllButLastDo(col.iterator(), (Closure>) null)); + assertNull(CollectionUtils.forAllButLastDo((Iterator) null, (Closure) null)); } @Test