From 9d2f21dab52f920bc6d1049bfd5d74bded5ec4a8 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 10 Apr 2017 12:34:49 +0200 Subject: [PATCH] Minor: fix broken formatting; use THashSet instead of HashSet (IDEA-CR-20086) --- .../src/com/intellij/codeInspection/InspectionEngine.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/analysis-impl/src/com/intellij/codeInspection/InspectionEngine.java b/platform/analysis-impl/src/com/intellij/codeInspection/InspectionEngine.java index 8c6a51472124..ef8d32691a16 100644 --- a/platform/analysis-impl/src/com/intellij/codeInspection/InspectionEngine.java +++ b/platform/analysis-impl/src/com/intellij/codeInspection/InspectionEngine.java @@ -284,7 +284,7 @@ public class InspectionEngine { } else if (language instanceof MetaLanguage) { Collection matchingLanguages = ((MetaLanguage) language).getMatchingLanguages(); - result = new HashSet<>(); + result = new THashSet<>(); for (Language matchingLanguage : matchingLanguages) { result.addAll(getLanguageWithDialects(wrapper, matchingLanguage)); } @@ -297,9 +297,9 @@ public class InspectionEngine { @NotNull private static Set getLanguageWithDialects(@NotNull LocalInspectionToolWrapper wrapper, Language language) { - Set result;List dialects = language.getDialects(); + List dialects = language.getDialects(); boolean applyToDialects = wrapper.applyToDialects(); - result = applyToDialects && !dialects.isEmpty() ? new THashSet<>(1 + dialects.size()) : new SmartHashSet<>(); + Set result = applyToDialects && !dialects.isEmpty() ? new THashSet<>(1 + dialects.size()) : new SmartHashSet<>(); result.add(language.getID()); if (applyToDialects) { for (Language dialect : dialects) {