Files
openide/java/java-tests/testData/inspection/duplicateBranchesInSwitch/Throw.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 "";
}
}