inspection toolwindow: do not create new profile an each run

This commit is contained in:
Dmitry Batkovich
2016-06-30 17:43:59 +03:00
parent 4d1c0044fd
commit 0a44fadd78
@@ -327,7 +327,7 @@ public class GlobalInspectionContextBase extends UserDataHolderBase implements G
@NotNull
protected List<Tools> getUsedTools() {
InspectionProfileImpl profile = new InspectionProfileImpl((InspectionProfileImpl)getCurrentProfile());
InspectionProfileImpl profile = (InspectionProfileImpl)getCurrentProfile();
List<Tools> tools = profile.getAllEnabledInspectionTools(myProject);
Set<InspectionToolWrapper> dependentTools = new LinkedHashSet<InspectionToolWrapper>();
for (Tools tool : tools) {