[java][switch completion] IDEA-270439 Code completion for pattern matching in switch

Adjust the completion variants for switch statements and expressions

GitOrigin-RevId: 05119897b0eb72bb875097cd197f376534d15db9
This commit is contained in:
Nikita Eshkeev
2021-07-13 19:51:15 +00:00
committed by intellij-monorepo-bot
parent 1e0a217143
commit afc2a8cd37
13 changed files with 256 additions and 19 deletions

View File

@@ -0,0 +1,20 @@
class Main {
void f(Object o) {
switch(o) {
case Integer integer && integer<caret>, null
}
}
void g(Object o) {
switch(o) {
case null, Integer integer && integer<caret>
}
}
void h(Object o) {
switch(o) {
case Integer integer && integer<caret>
}
}
}