--- old/test/java/util/Collection/CollectionDefaults.java 2013-09-04 14:04:39.416073666 -0700 +++ new/test/java/util/Collection/CollectionDefaults.java 2013-09-04 14:04:39.256073658 -0700 @@ -84,7 +84,7 @@ fail("expected NPE not thrown"); } catch (NullPointerException npe) {} try { - set.removeIf(null); + set.removeAll((Predicate)null); fail("expected NPE not thrown"); } catch (NullPointerException npe) {} } @@ -119,14 +119,14 @@ } @Test - public void testRemoveIf() throws Exception { + public void testRemoveAll() throws Exception { final CollectionSupplier supplier = new CollectionSupplier(SET_CLASSES, SIZE); for (final CollectionSupplier.TestCase test : supplier.get()) { final Set original = ((Set) test.original); final Set set = ((Set) test.collection); try { - set.removeIf(null); + set.removeAll((Predicate)null); fail("expected NPE not thrown"); } catch (NullPointerException npe) {} if (test.className.equals("java.util.HashSet")) { @@ -135,7 +135,7 @@ CollectionAsserts.assertContents(set, original); } - set.removeIf(pEven); + set.removeAll(pEven); for (int i : set) { assertTrue((i % 2) == 1); } @@ -144,7 +144,7 @@ assertTrue(set.contains(i)); } } - set.removeIf(pOdd); + set.removeAll(pOdd); assertTrue(set.isEmpty()); } }