mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 15:35:40 +07:00
IDEA-292909 GitOrigin-RevId: b8da95df3641add9c696b864ac624237f43a29e2
29 lines
612 B
Java
29 lines
612 B
Java
// "Replace with old style 'switch' statement" "true"
|
|
import java.util.*;
|
|
|
|
class SwitchExpressionMigration {
|
|
private static void m(int x) {
|
|
int x;
|
|
switch (x) {
|
|
case 1:
|
|
if (true) {
|
|
x = 0;
|
|
break;
|
|
} else {
|
|
x = 1;
|
|
break;
|
|
}
|
|
case 2:
|
|
x = 2;
|
|
break;
|
|
case 3:
|
|
case 4:
|
|
System.out.println("asda");
|
|
x = 3;
|
|
break;
|
|
default:
|
|
x = 12;
|
|
break;
|
|
}
|
|
}
|
|
} |