[java-highlighting] 'case default' is the incorrect syntax, and it was replaced with the proper 'default' syntax.

GitOrigin-RevId: 72f8e7f6c9080db7cb0b89c0ed876eb949171e8f
This commit is contained in:
Mikhail Pyltsin
2023-07-14 16:14:45 +00:00
committed by intellij-monorepo-bot
parent d40820813e
commit ab14666e4e
32 changed files with 36 additions and 35 deletions
@@ -6,7 +6,7 @@ abstract class Test {
<caret>switch (o) {
case String s -> System.out.println("one");
case Integer i -> System.out.println("two");
case default -> System.out.println("default");
default -> System.out.println("default");
}
}
}
@@ -8,7 +8,7 @@ class Test {
switch<caret> (o) {
case String s -> System.out.println("one");
case Integer i -> System.out.println("two");
case default -> System.out.println("default");
default -> System.out.println("default");
}
}
}
@@ -4,7 +4,7 @@ abstract class Test {
void foo() {
<caret>switch (o) {
case default -> System.out.println("hello");
default -> System.out.println("hello");
}
}
}
@@ -4,7 +4,7 @@ abstract class Test {
void foo() {
<caret>switch (o) {
case default, null -> System.out.println("hello");
case null, default -> System.out.println("hello");
}
}
}