mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-06-11 22:25:26 +07:00
ba72470db2
GitOrigin-RevId: 964e58ddcbf7920d18274be6e05df40088f9ed32
15 lines
282 B
Java
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);
|
|
}
|
|
}
|
|
}
|
|
} |