mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
CreateMissingSwitchBranchesFix: remove Java 12 preview support
GitOrigin-RevId: 9a93f9a98ec450e80936312b2b16b3608702a0f9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9f786611dc
commit
d93e5a3b81
+1
-3
@@ -155,9 +155,7 @@ public class CreateMissingSwitchBranchesFix extends BaseSwitchFix {
|
||||
if (isRuleBasedFormat) {
|
||||
return Collections.singletonList("case " + name + " -> " + value + ";");
|
||||
} else {
|
||||
return Arrays.asList("case " + name + ":",
|
||||
(PsiUtil.getLanguageLevel(switchBlock) == LanguageLevel.JDK_13_PREVIEW ? "yield" : "break") +
|
||||
" " + value + ";");
|
||||
return Arrays.asList("case " + name + ":", "yield " + value + ";");
|
||||
}
|
||||
} else {
|
||||
if (isRuleBasedFormat) {
|
||||
|
||||
Reference in New Issue
Block a user