Merge branch 'master' of git@git.labs.intellij.net:idea/community
authornik <Nikolay.Chashnikov@jetbrains.com>
Mon, 28 Sep 2009 12:35:54 +0000 (16:35 +0400)
committernik <Nikolay.Chashnikov@jetbrains.com>
Mon, 28 Sep 2009 12:35:54 +0000 (16:35 +0400)
platform/platform-impl/src/com/intellij/ide/startup/impl/StartupManagerImpl.java

index cdd91b5d304c4bc7f606acdf9053160b8cb8d7a1..11e0a368284ccaf14b531e2f418b58802312e624 100644 (file)
@@ -45,12 +45,12 @@ public class StartupManagerImpl extends StartupManagerEx {
   }
 
   public void registerStartupActivity(Runnable runnable) {
-    assert !myStartupActivityPassed : "Registering startup activity that will never be run" ;
+    LOG.assertTrue(!myStartupActivityPassed, "Registering startup activity that will never be run");
     myActivities.add(runnable);
   }
 
   public synchronized void registerPostStartupActivity(Runnable runnable) {
-    assert !myPostStartupActivityPassed : "Registering post-startup activity that will never be run" ;
+    LOG.assertTrue(!myPostStartupActivityPassed, "Registering post-startup activity that will never be run");
     myPostStartupActivities.add(runnable);
   }