mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-21 07:25:22 +07:00
7e1064ea3c
GitOrigin-RevId: 22a46c15d8900d8a31514846755a013f6a67ad42
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);
|
|
}
|
|
}
|