From 6cd524b129a45a7e60df1895fb352cd4db3e8cc5 Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Wed, 6 Jun 2018 19:58:57 +0300 Subject: [PATCH] simplify InspectionProfileImpl constructor call --- .../codeInspection/ex/InspectionProfileImpl.java | 10 +++++----- .../ex/ApplicationInspectionProfileManager.java | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileImpl.java b/platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileImpl.java index dc268e654b45..da923cf66746 100644 --- a/platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileImpl.java +++ b/platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileImpl.java @@ -79,11 +79,11 @@ public class InspectionProfileImpl extends NewInspectionProfile { this(profileName, toolSupplier, (BaseInspectionProfileManager)InspectionProfileManager.getInstance(), baseProfile, null); } - public InspectionProfileImpl(@NotNull String profileName, - @NotNull Supplier> toolSupplier, - @NotNull BaseInspectionProfileManager profileManager, - @Nullable InspectionProfileImpl baseProfile, - @Nullable SchemeDataHolder dataHolder) { + protected InspectionProfileImpl(@NotNull String profileName, + @NotNull Supplier> toolSupplier, + @NotNull BaseInspectionProfileManager profileManager, + @Nullable InspectionProfileImpl baseProfile, + @Nullable SchemeDataHolder dataHolder) { super(profileName, profileManager); myToolSupplier = toolSupplier; diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ex/ApplicationInspectionProfileManager.java b/platform/lang-impl/src/com/intellij/codeInspection/ex/ApplicationInspectionProfileManager.java index d8a3e28c3afe..85dde4517aed 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ex/ApplicationInspectionProfileManager.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ex/ApplicationInspectionProfileManager.java @@ -215,7 +215,7 @@ public class ApplicationInspectionProfileManager extends BaseInspectionProfileMa // use default as base, not random custom profile InspectionProfileImpl result = mySchemeManager.findSchemeByName(InspectionProfileKt.DEFAULT_PROFILE_NAME); if (result == null) { - InspectionProfileImpl profile = new InspectionProfileImpl(InspectionProfileKt.DEFAULT_PROFILE_NAME, InspectionToolRegistrar.getInstance(), this, null, null); + InspectionProfileImpl profile = new InspectionProfileImpl(InspectionProfileKt.DEFAULT_PROFILE_NAME); addProfile(profile); return profile; }