From c5cb3c466d648e5da88b9de7a76c18f2ddfa8468 Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Tue, 24 May 2016 11:37:07 +0300 Subject: [PATCH] inspection toolwindow: use tool shortnames for suppression actions holder IDEA-156478 --- .../intellij/codeInspection/ui/InspectionResultsView.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java index fb5b1c317f26..b8eeddb35d4c 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java @@ -129,7 +129,7 @@ public class InspectionResultsView extends JPanel implements Disposable, Occuren private InspectionTreeLoadingProgressAware myLoadingProgressPreview; private final ExcludedInspectionTreeNodesManager myExcludedInspectionTreeNodesManager; private final Set mySuppressedNodes = new HashSet<>(); - private final ConcurrentMap> mySuppressActions = new ConcurrentHashMap<>(); + private final ConcurrentMap> mySuppressActions = new ConcurrentHashMap<>(); private final Object myTreeStructureUpdateLock = new Object(); @@ -621,8 +621,8 @@ public class InspectionResultsView extends JPanel implements Disposable, Occuren @NotNull public Set getSuppressActions(InspectionToolWrapper wrapper) { - return mySuppressActions.computeIfAbsent(wrapper, (w) -> { - final SuppressIntentionAction[] actions = InspectionManagerEx.getSuppressActions(w); + return mySuppressActions.computeIfAbsent(wrapper.getShortName(), (w) -> { + final SuppressIntentionAction[] actions = InspectionManagerEx.getSuppressActions(wrapper); return actions == null ? Collections.emptySet() : ContainerUtil.newLinkedHashSet(actions); }); }