mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 04:07:30 +07:00
10 lines
321 B
Java
10 lines
321 B
Java
class C {
|
|
void foo(int n) {
|
|
String string = switch (n) {
|
|
case 1 -> throw new IllegalArgumentException();
|
|
case 2 -> throw new IllegalStateException();
|
|
case 3 -> <weak_warning descr="Duplicate branch in 'switch'">throw new IllegalArgumentException();</weak_warning>
|
|
default -> "";
|
|
};
|
|
}
|
|
} |