[java][switch completion] IDEA-271902 Fix the completion tail in case labels

Make SwitchUtils#isRuleFormatSwitch return true regardless if the passed switch block is used in a statement or an expression context.

GitOrigin-RevId: fce50d7a2e2936e6653b2eae1509e6c1fe76d7ad
This commit is contained in:
Nikita Eshkeev
2021-08-04 17:57:36 +03:00
committed by intellij-monorepo-bot
parent 93651a6b69
commit 94956088c3
6 changed files with 29 additions and 17 deletions

View File

@@ -3,7 +3,7 @@ class Main {
private static final int LEVEL = 0;
void f(Object o) {
switch(o) {
case LEVEL:<caret>
case LEVEL -> <caret>
}
}
}