Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/convertSwitchToIf/afterLocalEnum.java
Alexandr Suhinin 8496dd3b7f IDEA-270441 IJ-CR-12027 convert switch to if: fix "null" class name for local Enums
GitOrigin-RevId: bd6d592522e497f7897c92799333630d611dc6e1
2021-07-20 09:42:18 +00:00

11 lines
173 B
Java

// "Replace 'switch' with 'if'" "true"
class Test {
void test() {
enum P {
s;
}
P p = null;
if (p == P.s) {
}
}
}