Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/slowAbstractSetRemoveAll/beforeEmptySet.java
Andrey.Cherkasov 95a12db895 IDEA-253512: Fixes after review
GitOrigin-RevId: 0c9d42259d6a5169c449b536aa4e7b982446b10a
2020-11-30 15:12:44 +00:00

12 lines
260 B
Java

// "Fix all 'Call to 'set.removeAll(list)' may work slowly' problems in file" "false"
import java.util.*;
class Test {
void foo(Set<Integer> source, List<Integer> removals) {
if (source.isEmpty()) {
source.removeAll<caret>(removals);
}
}
}