mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
13 lines
327 B
Java
13 lines
327 B
Java
class C {
|
|
String foo(int n) {
|
|
switch (n) {
|
|
case 1:
|
|
throw new IllegalArgumentException("A");
|
|
case 2:
|
|
throw new IllegalStateException("A");
|
|
case 3:
|
|
<weak_warning descr="Duplicate branch in 'switch'">throw new IllegalArgumentException("A");</weak_warning>
|
|
}
|
|
return "";
|
|
}
|
|
} |