From 0a44fadd788d2e20bd1be29e41c69d55caa6b013 Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Thu, 30 Jun 2016 17:41:45 +0300 Subject: [PATCH] inspection toolwindow: do not create new profile an each run --- .../intellij/codeInspection/ex/GlobalInspectionContextBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/analysis-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextBase.java b/platform/analysis-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextBase.java index fb5d76fa046a..18a48944f420 100644 --- a/platform/analysis-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextBase.java +++ b/platform/analysis-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextBase.java @@ -327,7 +327,7 @@ public class GlobalInspectionContextBase extends UserDataHolderBase implements G @NotNull protected List getUsedTools() { - InspectionProfileImpl profile = new InspectionProfileImpl((InspectionProfileImpl)getCurrentProfile()); + InspectionProfileImpl profile = (InspectionProfileImpl)getCurrentProfile(); List tools = profile.getAllEnabledInspectionTools(myProject); Set dependentTools = new LinkedHashSet(); for (Tools tool : tools) {