From b01b29081d5e301e7dea74fff7eb5d363ef452cd Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Tue, 31 May 2016 17:32:22 +0300 Subject: [PATCH] inspection toolwindow: revert presentation map key type --- .../codeInspection/ex/GlobalInspectionContextImpl.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java b/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java index 03fbfd98b251..607b55e0b4aa 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java @@ -828,11 +828,10 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp } } - private final ConcurrentMap myPresentationMap = ContainerUtil.newConcurrentMap(); + private final ConcurrentMap myPresentationMap = ContainerUtil.newConcurrentMap(); @NotNull public InspectionToolPresentation getPresentation(@NotNull InspectionToolWrapper toolWrapper) { - final String shortName = toolWrapper.getShortName(); - InspectionToolPresentation presentation = myPresentationMap.get(shortName); + InspectionToolPresentation presentation = myPresentationMap.get(toolWrapper); if (presentation == null) { String presentationClass = StringUtil.notNullize(toolWrapper.myEP == null ? null : toolWrapper.myEP.presentation, DefaultInspectionToolPresentation.class.getName()); @@ -844,7 +843,7 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp LOG.error(e); throw new RuntimeException(e); } - presentation = ConcurrencyUtil.cacheOrGet(myPresentationMap, shortName, presentation); + presentation = ConcurrencyUtil.cacheOrGet(myPresentationMap, toolWrapper, presentation); } return presentation; }