cleanup
authorVladimir Krivosheev <vladimir.krivosheev@jetbrains.com>
Fri, 8 Jul 2016 07:50:19 +0000 (09:50 +0200)
committerVladimir Krivosheev <vladimir.krivosheev@jetbrains.com>
Fri, 8 Jul 2016 07:50:19 +0000 (09:50 +0200)
platform/core-api/src/com/intellij/openapi/options/SchemeManager.java
platform/lang-impl/src/com/intellij/codeInspection/ex/ApplicationInspectionProfileManager.java

index 16f37bf2814ad605b6ca270515b0b4b16efe4afa..0c8ed830aaf54de29a2d9ae6c063d56fb371b3d7 100644 (file)
@@ -41,7 +41,6 @@ public abstract class SchemeManager<T extends Scheme> {
    */
   public abstract void clearAllSchemes();
 
-  @SuppressWarnings("NullableProblems")
   @NotNull
   public abstract List<T> getAllSchemes();
 
index 861d40c6265e6c12e1739108b0a0b403033887de..08864638c5f4ebc6510d19af2f3d11956b12806f 100644 (file)
@@ -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();
     }
   }