Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/convertSwitchToIf/afterDeclareNoOuterBlock.java
Tagir Valeev ba72470db2 Suggest j and k for int type
GitOrigin-RevId: 964e58ddcbf7920d18274be6e05df40088f9ed32
2020-06-11 10:01:40 +03:00

15 lines
282 B
Java

// "Replace 'switch' with 'if'" "true"
class X {
int m(int i) {
if (i > 0) {
int j = ++i;
if (j == 1) {
System.out.println(1);
System.out.println(2);
} else if (j == 2) {
System.out.println(2);
}
}
}
}