mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 08:00:18 +07:00
17 lines
335 B
Java
17 lines
335 B
Java
// "Replace with enhanced 'switch' statement" "false"
|
|
import java.util.*;
|
|
|
|
class SwitchExpressionMigration {
|
|
private static String m(int n) {
|
|
switch<caret> (n) {
|
|
case 1:
|
|
int x = 0;
|
|
System.out.println("a");
|
|
break;
|
|
case 2:
|
|
x = 3;
|
|
System.out.println(x);
|
|
break;
|
|
}
|
|
}
|
|
} |