inspection toolwindow: CME fixed
authorDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Wed, 25 May 2016 10:57:51 +0000 (13:57 +0300)
committerDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Wed, 25 May 2016 10:57:51 +0000 (13:57 +0300)
platform/lang-impl/src/com/intellij/codeInspection/ui/DefaultInspectionToolPresentation.java

index 49d1b98443ee8dd8e3909b7fbbf8efb3cb042fc0..e40180c11c5657b2a3ee62132cc225752f38a63c 100644 (file)
@@ -67,8 +67,7 @@ public class DefaultInspectionToolPresentation implements ProblemDescriptionsPro
   private InspectionNode myToolNode;
 
   private static final Object lock = new Object();
-  private final Map<RefEntity, CommonProblemDescriptor[]> myProblemElements = Collections.synchronizedMap(new THashMap<RefEntity, CommonProblemDescriptor[]>(
-    TObjectHashingStrategy.IDENTITY));
+  private final Map<RefEntity, CommonProblemDescriptor[]> myProblemElements = ContainerUtil.newConcurrentMap(TObjectHashingStrategy.IDENTITY);
   private final Map<String, Set<RefEntity>> myContents = Collections.synchronizedMap(new HashMap<String, Set<RefEntity>>(1)); // keys can be null
   private final Set<RefModule> myModulesProblems = Collections.synchronizedSet(new THashSet<RefModule>(TObjectHashingStrategy.IDENTITY));
   private final Map<CommonProblemDescriptor, RefEntity> myProblemToElements = Collections.synchronizedMap(new THashMap<CommonProblemDescriptor, RefEntity>(TObjectHashingStrategy.IDENTITY));