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

15 lines
325 B
Java

// "Merge with the default 'switch' branch" "GENERIC_ERROR_OR_WARNING"
class C {
void foo(int n) {
switch (n) {
case 2:
bar("B");
break;
case 1:
default:
bar("A");
break;
}
}
void bar(String s){}
}