| // "Replace with old style 'switch' statement" "true" | |
| import java.util.*; | |
| class SwitchExpressionMigration { | |
| private static void m(int x) { | |
| /*4*/ | |
| /*1*/ | |
| /*2*/ | |
| /*3*/ | |
| int x; | |
| switch (x +/*cond*/ x) {/*5*/ | |
| 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/*6*/; | |
| break; | |
| } | |
| } | |
| } |