Files
openide/java/java-tests/testData/inspection/duplicateBranchesInEnhancedSwitchFix/afterCaseLabelsExpressionDefaultLastMerge.java
Bas Leijdekkersandintellij-monorepo-bot e2bcaddbe3 java inspectin: merge switch case label element lists when possible
in "Duplicate branches in 'switch'" inspection fix

GitOrigin-RevId: 7b22a3409f5d9237f432ab3dd35f27cacfbd7737
2022-07-20 18:53:31 +00:00

12 lines
272 B
Java

// "Merge with the default 'switch' branch" "GENERIC_ERROR_OR_WARNING"
class C {
void test(int n) {
String s = switch (n) {
case 2:
break "b";
case 3, 1:
default:
break "a";
};
}
}