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