mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 18:48:28 +07:00
GitOrigin-RevId: 571a82f66623887c1b5008963df842b2597c58c9
16 lines
347 B
Java
16 lines
347 B
Java
// "Replace 'switch' with 'if'" "true-preview"
|
|
class X {
|
|
void test(int x) {
|
|
if (x > 0) {
|
|
if (x == 1) {
|
|
if (Math.random() > 0.5) {
|
|
System.out.println(1);
|
|
} else {
|
|
}
|
|
} else if (x == 2) {
|
|
System.out.println(2);
|
|
}
|
|
}
|
|
System.out.println("Exit");
|
|
}
|
|
} |