mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 06:39:33 +07:00
12 lines
320 B
Java
12 lines
320 B
Java
// "Replace with old style 'switch' statement" "true"
|
|
import java.util.*;
|
|
|
|
class SwitchExpressionMigration {
|
|
private static String m(int n) {
|
|
switch<caret> (n +/*cond*/ n) {
|
|
/*1*/
|
|
case /*case*/1 -> System.out.println("a"/*2*/); /*3*/
|
|
case 2 -> System.out.println("b");
|
|
}
|
|
}
|
|
} |