mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-25 16:45:49 +07:00
1520e434af
GitOrigin-RevId: a6020c6427a05f0bcd6f6987a13252929854c547
29 lines
636 B
Java
29 lines
636 B
Java
// "Extract side effect" "true"
|
|
class Z {
|
|
|
|
void z() {
|
|
switch (0) {
|
|
case 0 -> {
|
|
}
|
|
case 1 -> {
|
|
System.out.println("oops");
|
|
}
|
|
case 2 -> {
|
|
System.out.println("bar");
|
|
if (Math.random() > 0.5) {
|
|
new Foo().getBar();
|
|
}
|
|
}
|
|
case 3 -> {
|
|
if (Math.random() > 0.5) {
|
|
} else {
|
|
}
|
|
}
|
|
case 4 -> {
|
|
if (Math.random() > 0.5) break;
|
|
System.out.println("four");
|
|
}
|
|
default -> new Foo();
|
|
}
|
|
}
|
|
} |