diff --git a/plugins/InspectionGadgets/src/com/siyeh/ig/fixes/CreateMissingSwitchBranchesFix.java b/plugins/InspectionGadgets/src/com/siyeh/ig/fixes/CreateMissingSwitchBranchesFix.java index 29b84ac2ac38..c24f035667a0 100644 --- a/plugins/InspectionGadgets/src/com/siyeh/ig/fixes/CreateMissingSwitchBranchesFix.java +++ b/plugins/InspectionGadgets/src/com/siyeh/ig/fixes/CreateMissingSwitchBranchesFix.java @@ -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) {