mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-29 16:02:32 +07:00
12 lines
295 B
Java
12 lines
295 B
Java
// "Merge with 'case 1'" "GENERIC_ERROR_OR_WARNING"
|
|
class C {
|
|
void foo(int n) {
|
|
String s = switch (n) {
|
|
case 1, 4 -> bar("A");
|
|
case 2 -> bar("B");
|
|
case 3 -> bar("A");
|
|
default -> "";
|
|
}
|
|
}
|
|
String bar(String s){return s;}
|
|
} |