src/share/classes/java/util/ArrayList.java

Print this page
rev 7994 : 8024291: Rename Collection.removeIf(Predicate) back to removeAll(Predicate)
Reviewed-by: duke

*** 1373,1383 **** return Spliterator.ORDERED | Spliterator.SIZED | Spliterator.SUBSIZED; } } @Override ! public boolean removeIf(Predicate<? super E> filter) { Objects.requireNonNull(filter); // figure out which elements are to be removed // any exception thrown from the filter predicate at this stage // will leave the collection unmodified int removeCount = 0; --- 1373,1383 ---- return Spliterator.ORDERED | Spliterator.SIZED | Spliterator.SUBSIZED; } } @Override ! public boolean removeAll(Predicate<? super E> filter) { Objects.requireNonNull(filter); // figure out which elements are to be removed // any exception thrown from the filter predicate at this stage // will leave the collection unmodified int removeCount = 0;