Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/convertSwitchToIf/beforeComment.java
2018-07-11 13:02:10 +02:00

13 lines
244 B
Java

// "Replace 'switch' with 'if'" "true"
class X {
void test(int i) {
<caret>switch (i) {
case 1:
//foo
if (Math.random() > 0.5) {
System.out.println("Hello");
}
}
}
}