Files
Tagir Valeev c1e672960d [java-inspections] UnwrapSwitchLabelFix: try to collapse after unwrap
GitOrigin-RevId: 21428eb3209594c00dc1d81c3d4cda3a7276e3fb
2022-09-20 09:26:47 +00:00

15 lines
291 B
Java

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