CR-IC-7104 (simplification)
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>
Tue, 23 Dec 2014 14:35:30 +0000 (15:35 +0100)
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>
Tue, 23 Dec 2014 14:35:30 +0000 (15:35 +0100)
java/compiler/impl/src/com/intellij/compiler/options/JavaCompilersTab.java

index 3f7222464296fe5cc97e5807a7ad0dcaa86b7f8c..13dcc5051dc503b48abb2976adb72bc353bbfdbf 100644 (file)
@@ -135,12 +135,9 @@ public class JavaCompilersTab implements SearchableConfigurable, Configurable.No
   }
 
   public void apply() throws ConfigurationException {
-    boolean modified = false;
     try {
-      modified = isModified();
       for (Configurable configurable : myConfigurables) {
         if (configurable.isModified()) {
-          modified = true;
           configurable.apply();
         }
       }
@@ -153,9 +150,7 @@ public class JavaCompilersTab implements SearchableConfigurable, Configurable.No
       myTargetLevelComponent.setModuleTargetLevels(myCompilerConfiguration.getModulesBytecodeTargetMap());
     }
     finally {
-      if (modified) {
-        BuildManager.getInstance().clearState(myProject);
-      }
+      BuildManager.getInstance().clearState(myProject);
     }
   }