mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 17:51:09 +07:00
10 lines
289 B
Java
10 lines
289 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) {
|
|
(flag ? removals1 : removals2).forEach(source::remove);
|
|
}
|
|
}
|