Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/deleteSwitchLabel/afterUnwrapCollapse.java
Tagir Valeev c1e672960d [java-inspections] UnwrapSwitchLabelFix: try to collapse after unwrap
GitOrigin-RevId: 21428eb3209594c00dc1d81c3d4cda3a7276e3fb
2022-09-20 09:26:47 +00:00

10 lines
182 B
Java

// "Remove unreachable branches" "true-preview"
class X {
int test(int a, int b) {
if (b != 0) return;
return switch(a) {
case 1 -> 2;
default -> 6;
}
}
}