mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-inspections] IJ-CR-115741 IDEA-333452 Duplicate branch on switch. Improve work with comments
- fix fast exit condition GitOrigin-RevId: 04d043bda70d688785886b971a292270e657a384
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0939782a59
commit
17affe2b0d
-3
@@ -145,9 +145,6 @@ public final class DuplicateBranchesInSwitchInspection extends LocalInspectionTo
|
||||
@NotNull DuplicateBranchesInSwitchInspection.LevelType state,
|
||||
@NotNull LocalQuickFix @NotNull ... fixes) {
|
||||
PsiElement[] elements = duplicate.myStatements;
|
||||
if (elements.length == 0) {
|
||||
return;
|
||||
}
|
||||
if (state == LevelType.NO) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user