Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/splitSwitchBranchWithSeveralCaseValues/afterFirstValueInRule.java
Andrey.Cherkasov ddf363e544 [java-inspections] SplitSwitchBranchWithSeveralCaseValuesAction: support pattern matching
GitOrigin-RevId: 294d9dcaa29b1f2f54ce92c5f66b3e0050fd7562
2021-07-20 13:03:01 +00:00

10 lines
199 B
Java

// "Split values of 'switch' branch" "true"
class C {
void foo(int n) {
String s = "";
switch (n) {
case 2 -> s = "x";
case 1 -> s = "x";
}
}
}