Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/convertSwitchToIf/afterRuleJava12Preview.java

10 lines
202 B
Java

// "Replace 'switch' with 'if'" "true"
class Test {
void foo(int x) {
if (x == 0) {
System.out.println(x);
} else if (x == 1) {
System.out.println("one");
}
}
}