Skip to content

Commit

Permalink
Retarget all Collections and remove reflection in DesugarCollections
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 592263502
  • Loading branch information
dx404 authored and Javac Team committed Dec 19, 2023
1 parent 0afb816 commit c01a544
Show file tree
Hide file tree
Showing 2 changed files with 2,708 additions and 375 deletions.
4 changes: 0 additions & 4 deletions jdk11/src/java.base/share/classes/java/util/Collection.java
Original file line number Diff line number Diff line change
Expand Up @@ -538,10 +538,6 @@ default <T> T[] toArray(IntFunction<T[]> generator) {
* @since 1.8
*/
default boolean removeIf(Predicate<? super E> filter) {
// For Desugar: SynchronizedCollection support.
if (DesugarCollections.SYNCHRONIZED_COLLECTION.isInstance(this)) {
return DesugarCollections.removeIf(this, filter);
}
Objects.requireNonNull(filter);
boolean removed = false;
final Iterator<E> each = iterator();
Expand Down
Loading

0 comments on commit c01a544

Please sign in to comment.