diff --git a/src/test/org/apache/commons/collections/collection/TestCompositeCollection.java b/src/test/org/apache/commons/collections/collection/TestCompositeCollection.java index 38ab0761d..b81f1de73 100644 --- a/src/test/org/apache/commons/collections/collection/TestCompositeCollection.java +++ b/src/test/org/apache/commons/collections/collection/TestCompositeCollection.java @@ -125,6 +125,7 @@ public class TestCompositeCollection extends AbstractTestCollection { two = new HashSet(); } + @SuppressWarnings("serial") protected void setUpMutatorTest() { setUpTest(); c.setMutator(new CompositeCollection.CollectionMutator() { @@ -241,7 +242,7 @@ public class TestCompositeCollection extends AbstractTestCollection { assertTrue(one.contains("1")); } - @SuppressWarnings("unchecked") + @SuppressWarnings({ "unchecked", "serial" }) public void testAddAllMutator() { setUpTest(); c.setMutator(new CompositeCollection.CollectionMutator() { @@ -274,7 +275,7 @@ public class TestCompositeCollection extends AbstractTestCollection { assertTrue(one.contains("foo")); } - @SuppressWarnings("unchecked") + @SuppressWarnings({ "unchecked", "serial" }) public void testAddMutator() { setUpTest(); c.setMutator(new CompositeCollection.CollectionMutator() {