mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
cleanup
This commit is contained in:
@@ -41,7 +41,6 @@ public abstract class SchemeManager<T extends Scheme> {
|
||||
*/
|
||||
public abstract void clearAllSchemes();
|
||||
|
||||
@SuppressWarnings("NullableProblems")
|
||||
@NotNull
|
||||
public abstract List<T> getAllSchemes();
|
||||
|
||||
|
||||
+2
-2
@@ -164,7 +164,7 @@ public class ApplicationInspectionProfileManager extends BaseInspectionProfileMa
|
||||
|
||||
public void initProfiles() {
|
||||
if (myProfilesAreInitialized.getAndSet(true)) {
|
||||
if (mySchemeManager.getAllSchemes().isEmpty()) {
|
||||
if (mySchemeManager.isEmpty()) {
|
||||
createDefaultProfile();
|
||||
}
|
||||
return;
|
||||
@@ -172,7 +172,7 @@ public class ApplicationInspectionProfileManager extends BaseInspectionProfileMa
|
||||
if (!LOAD_PROFILES) return;
|
||||
|
||||
mySchemeManager.loadSchemes();
|
||||
if (mySchemeManager.getAllSchemes().isEmpty()) {
|
||||
if (mySchemeManager.isEmpty()) {
|
||||
createDefaultProfile();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user