From 5ea2a6939361a28b4e4f8b199ca722831068df90 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Tue, 5 Apr 2016 16:03:51 +0300 Subject: [PATCH] start inspections in parallel with highlighting since the latter has more work to do now --- .../daemon/impl/LocalInspectionsPassFactory.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/LocalInspectionsPassFactory.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/LocalInspectionsPassFactory.java index 8f2b78f8f4a8..7ad937c7c934 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/LocalInspectionsPassFactory.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/LocalInspectionsPassFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2014 JetBrains s.r.o. + * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,7 +46,7 @@ public class LocalInspectionsPassFactory extends AbstractProjectComponent implem private static final Logger LOG = Logger.getInstance("#com.intellij.codeInsight.daemon.impl.LocalInspectionsPassFactory"); public LocalInspectionsPassFactory(Project project, TextEditorHighlightingPassRegistrar highlightingPassRegistrar) { super(project); - highlightingPassRegistrar.registerTextEditorHighlightingPass(this, new int[]{Pass.UPDATE_ALL}, ArrayUtil.EMPTY_INT_ARRAY, true, Pass.LOCAL_INSPECTIONS); + highlightingPassRegistrar.registerTextEditorHighlightingPass(this, ArrayUtil.EMPTY_INT_ARRAY, new int[]{Pass.UPDATE_ALL}, true, Pass.LOCAL_INSPECTIONS); } @Override @@ -93,7 +93,7 @@ public class LocalInspectionsPassFactory extends AbstractProjectComponent implem @Override List getInspectionTools(@NotNull InspectionProfileWrapper profile) { List tools = super.getInspectionTools(profile); - List result = new ArrayList(tools.size()); + List result = new ArrayList<>(tools.size()); for (LocalInspectionToolWrapper tool : tools) { if (!tool.runForWholeFile()) result.add(tool); }