Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/splitSwitchBranchWithSeveralCaseValues/afterFirstValueInRule.java
Roman Ivanov 6371cde54c [java] fix usages after changing PSI structure
earlier we had PsiExpressionList, now it is PsiCaseLabelElementList

GitOrigin-RevId: 14b06afe93d631d12048539704cd6e71efc5d4ef
2021-06-11 17:35:47 +00:00

10 lines
199 B
Java

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