Skip to content

Commit c01a544

Browse files
dx404Javac Team
authored andcommitted
Retarget all Collections and remove reflection in DesugarCollections
PiperOrigin-RevId: 592263502
1 parent 0afb816 commit c01a544

File tree

2 files changed

+2708
-375
lines changed

2 files changed

+2708
-375
lines changed

jdk11/src/java.base/share/classes/java/util/Collection.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,10 +538,6 @@ default <T> T[] toArray(IntFunction<T[]> generator) {
538538
* @since 1.8
539539
*/
540540
default boolean removeIf(Predicate<? super E> filter) {
541-
// For Desugar: SynchronizedCollection support.
542-
if (DesugarCollections.SYNCHRONIZED_COLLECTION.isInstance(this)) {
543-
return DesugarCollections.removeIf(this, filter);
544-
}
545541
Objects.requireNonNull(filter);
546542
boolean removed = false;
547543
final Iterator<E> each = iterator();

0 commit comments

Comments
 (0)