From d3230236ff1d00e4b634712803cd92d3b5a402f0 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Fri, 28 Apr 2017 13:35:02 +0200 Subject: [PATCH] use THashMap --- .../intellij/codeInsight/template/impl/TemplateContext.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/template/impl/TemplateContext.java b/platform/lang-impl/src/com/intellij/codeInsight/template/impl/TemplateContext.java index 14796d35bae5..2593e6b41e5a 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/template/impl/TemplateContext.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/template/impl/TemplateContext.java @@ -81,7 +81,7 @@ public class TemplateContext { // used during initialization => no sync @VisibleForTesting public void setDefaultContext(@NotNull TemplateContext defContext) { - HashMap copy = new HashMap<>(myContextStates); + Map copy = new THashMap<>(myContextStates); myContextStates.clear(); myContextStates.putAll(defContext.myContextStates); myContextStates.putAll(copy); @@ -107,7 +107,7 @@ public class TemplateContext { */ @NotNull private Map makeInheritanceExplicit() { - Map explicitStates = ContainerUtil.newHashMap(); + Map explicitStates = new THashMap<>(); for (TemplateContextType type : ContainerUtil.filter(TemplateManagerImpl.getAllContextTypes(), this::isDisabledByInheritance)) { explicitStates.put(type.getContextId(), false); }