mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 10:48:09 +07:00
[java-highlighting] IDEA-323955 Record patterns support available only for Java 20 preview. Fix compiler errors and tests
GitOrigin-RevId: 5f856519e56e61818e95cf63766fb6a54c6283ad
This commit is contained in:
committed by
intellij-monorepo-bot
parent
770e5e4e90
commit
4bc43b46f4
@@ -2,7 +2,7 @@
|
||||
class Main {
|
||||
void foo(Object obj) {
|
||||
switch (obj) {
|
||||
case String s && isEmpty(s) -> {}
|
||||
case String s when isEmpty(s) -> {}
|
||||
default -> {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
class Main {
|
||||
void foo(Object obj) {
|
||||
switch (obj) {
|
||||
case String s && isEmpt<caret>y(s) -> {}
|
||||
case String s when isEmpt<caret>y(s) -> {}
|
||||
default -> {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user