mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
10 lines
287 B
Java
10 lines
287 B
Java
// "Merge with 'case 1'" "GENERIC_ERROR_OR_WARNING"
|
|
class C {
|
|
void foo(int n) {
|
|
String s = switch (n) {
|
|
case 1, 3 -> throw new IllegalArgumentException("A");
|
|
case 2 -> throw new IllegalStateException("A");
|
|
default -> "";
|
|
};
|
|
}
|
|
} |