IJ-CR-175794 [java-inspection] IDEA-379192 Type pattern switch statements: IDEA code inspection fails to consider inheritance

- add javadoc

GitOrigin-RevId: ab24dbc69c273a884dc79c36940f9373ba7d7256
This commit is contained in:
Mikhail Pyltsin
2025-09-19 13:27:49 +00:00
committed by intellij-monorepo-bot
parent c7fde2ed8c
commit becdcec3f7
@@ -600,6 +600,10 @@ public final class DuplicateBranchesInSwitchInspection extends LocalInspectionTo
private final boolean myIsDefault;
private DuplicatesFinder myFinder;
protected final boolean myCanDeleteRedundantBranch;
/**
* Represents the context in which this branch is defined.
* It can contain any element inside the current branch.
*/
private final PsiElement myContext;
BranchBase(@NotNull PsiElement context, T @NotNull [] labels, PsiStatement @NotNull [] statements, String @NotNull [] commentTexts) {