simplify InspectionProfileImpl constructor call

This commit is contained in:
Dmitry Batkovich
2018-06-09 12:51:03 +03:00
parent 33ea6d3402
commit 6cd524b129
2 changed files with 6 additions and 6 deletions
@@ -79,11 +79,11 @@ public class InspectionProfileImpl extends NewInspectionProfile {
this(profileName, toolSupplier, (BaseInspectionProfileManager)InspectionProfileManager.getInstance(), baseProfile, null);
}
public InspectionProfileImpl(@NotNull String profileName,
@NotNull Supplier<List<InspectionToolWrapper>> toolSupplier,
@NotNull BaseInspectionProfileManager profileManager,
@Nullable InspectionProfileImpl baseProfile,
@Nullable SchemeDataHolder<? super InspectionProfileImpl> dataHolder) {
protected InspectionProfileImpl(@NotNull String profileName,
@NotNull Supplier<List<InspectionToolWrapper>> toolSupplier,
@NotNull BaseInspectionProfileManager profileManager,
@Nullable InspectionProfileImpl baseProfile,
@Nullable SchemeDataHolder<? super InspectionProfileImpl> dataHolder) {
super(profileName, profileManager);
myToolSupplier = toolSupplier;
@@ -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;
}