mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-24 11:26:03 +07:00
bd1a21a02a
GitOrigin-RevId: ec42a9047ba63b0cbaddd8357d11ae2ed56ed6b6
12 lines
303 B
Java
12 lines
303 B
Java
// "Replace 'switch' with 'if'" "true"
|
|
class Test {
|
|
void foo(int x) {
|
|
if (x == 0 || x == 1) {
|
|
System.out.println("ready");
|
|
System.out.println("steady");
|
|
} else if (x == 2 || x == 3) {
|
|
System.out.println("steady");
|
|
}
|
|
System.out.println("go");
|
|
}
|
|
} |