mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 15:50:49 +07:00
- fix cases with additional default GitOrigin-RevId: f0770e912fc36f988d2814dcdbf1721a9ba626c2
12 lines
312 B
Java
12 lines
312 B
Java
// "Replace with enhanced 'switch' statement" "true-preview"
|
|
|
|
class CaseDefaultNull {
|
|
|
|
private static void test2(String r2) {
|
|
switch (r2) {
|
|
case "1" -> System.out.println("1");
|
|
case "2" -> System.out.println("2");
|
|
case null, default -> System.out.println("3");
|
|
}
|
|
}
|
|
} |