Files
openide/java/java-tests/testData/inspection/duplicateBranchesInSwitchFix/beforeFallThroughToBreak2.java

18 lines
378 B
Java

// "Merge with 'case 1'" "GENERIC_ERROR_OR_WARNING"
class C {
void foo(int n) {
switch (n) {
case 1:
bar("A");
case 2:
break;
case 3:
bar("A");
break;
case 4:
<caret>bar("A");
case 5:
}
}
void bar(String s){}
}