mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 09:20:53 +07:00
9 lines
246 B
Java
9 lines
246 B
Java
// "Create parameter 'flag'" "true-preview"
|
|
class Foo {
|
|
void test(Object obj, boolean flag) {
|
|
switch (obj) {
|
|
case String s when flag -> System.out.println(1);
|
|
default -> System.out.println(2);
|
|
}
|
|
}
|
|
} |