mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inspection toolwindow: revert presentation map key type
This commit is contained in:
+3
-4
@@ -828,11 +828,10 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
|
||||
}
|
||||
}
|
||||
|
||||
private final ConcurrentMap<String, InspectionToolPresentation> myPresentationMap = ContainerUtil.newConcurrentMap();
|
||||
private final ConcurrentMap<InspectionToolWrapper, InspectionToolPresentation> 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user