From d9cdcadef53fa7282f60c6ea2a939ff657e2e1a5 Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Tue, 4 Oct 2016 16:15:15 +0300 Subject: [PATCH] inspection view: redundant clause is deleted in inspection presentation to add problems from global simple tool IDEA-162032 --- .../ui/DefaultInspectionToolPresentation.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ui/DefaultInspectionToolPresentation.java b/platform/lang-impl/src/com/intellij/codeInspection/ui/DefaultInspectionToolPresentation.java index be4b9091a6da..7b1f0c458421 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ui/DefaultInspectionToolPresentation.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ui/DefaultInspectionToolPresentation.java @@ -211,10 +211,8 @@ public class DefaultInspectionToolPresentation implements ProblemDescriptionsPro if (context.isViewClosed() || !(refElement instanceof RefElement)) { return; } - if (myToolWrapper instanceof LocalInspectionToolWrapper && !ApplicationManager.getApplication().isUnitTestMode()) { - context.initializeViewIfNeed().doWhenDone(() -> { - context.getView().addProblemDescriptors(myToolWrapper, refElement, descriptors); - }); + if (!ApplicationManager.getApplication().isUnitTestMode()) { + context.initializeViewIfNeed().doWhenDone(() -> context.getView().addProblemDescriptors(myToolWrapper, refElement, descriptors)); } }