mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
simplify InspectionProfileImpl constructor call
This commit is contained in:
+5
-5
@@ -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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user