[java-highlighting] IDEA-299588. generate missed branches fix in switch with deconstruction

GitOrigin-RevId: af4e42198f5bc6dc5c5f505443e2e55085abf196
This commit is contained in:
Mikhail Pyltsin
2023-03-06 16:16:19 +01:00
committed by intellij-monorepo-bot
parent 51904a60f9
commit b300b7c1ec
16 changed files with 575 additions and 120 deletions

View File

@@ -16,10 +16,7 @@ import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.*;
public abstract class QuickFixFactory {
public static QuickFixFactory getInstance() {
@@ -478,6 +475,12 @@ public abstract class QuickFixFactory {
@NotNull Set<String> missingCases,
@NotNull List<String> allNames);
@Nullable
public abstract IntentionAction createAddMissingRecordClassBranchesFix(@NotNull PsiSwitchBlock switchBlock,
@NotNull PsiClass selectorType,
@NotNull Map<PsiType, Set<List<PsiClass>>> branches,
@NotNull List<? extends PsiCaseLabelElement> elements);
@NotNull
public abstract IntentionAction createAddSwitchDefaultFix(@NotNull PsiSwitchBlock switchBlock, @Nullable String message);