Files
openide/java/java-tests/testData/inspection/switchExpressionMigration/beforeSwitchWithVarExhaustiveEnum.java
2021-07-22 12:28:20 +00:00

16 lines
269 B
Java

// "Replace with 'switch' expression" "true"
class X {
void test(E e) {
int d = 5;
<caret>switch (e) {
case A:
d = 3;
break;
case B:
d = 2;
}
}
enum E {A, B}
}