mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-29 16:50:55 +07:00
10 lines
288 B
Java
10 lines
288 B
Java
// "Replace with '(flag ? removals1 : removals2).forEach(source::remove)'" "true-preview"
|
|
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
void foo(Set<Integer> source, List<Integer> removals1, List<Integer> removals2, boolean flag) {
|
|
source.removeAll<caret>(flag ? removals1 : removals2);
|
|
}
|
|
}
|