geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r706530 - /geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/bundle/CommandBundle.java
Date Tue, 21 Oct 2008 06:07:04 GMT
Author: jdillon
Date: Mon Oct 20 23:07:04 2008
New Revision: 706530

URL: http://svn.apache.org/viewvc?rev=706530&view=rev
Log:
Don't need asserts, components are injected at construction

Modified:
    geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/bundle/CommandBundle.java

Modified: geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/bundle/CommandBundle.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/bundle/CommandBundle.java?rev=706530&r1=706529&r2=706530&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/bundle/CommandBundle.java
(original)
+++ geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/bundle/CommandBundle.java
Mon Oct 20 23:07:04 2008
@@ -72,7 +72,6 @@
     }
 
     protected void doEnable() throws Exception {
-        assert commandRegistry != null;
         for (Command command : commands) {
             commandRegistry.registerCommand(command);
         }
@@ -84,12 +83,10 @@
     }
 
     protected void doDisable() throws Exception {
-        assert commandRegistry != null;
         for (Command command : commands) {
             commandRegistry.removeCommand(command);
         }
 
-        assert aliasRegistry != null;
         for (String name : aliases.keySet()) {
             aliasRegistry.removeAlias(name);
         }



Mime
View raw message