mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-30 18:20:52 +07:00
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");
|
|
}
|
|
} |