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

9 lines
189 B
Java

// "Replace 'switch' with 'if'" "true"
class Test {
void foo(int x) {
switch<caret> (x) {
case 0 -> System.out.println(x);
case 1 -> System.out.println("one");
}
}
}