You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2008/10/21 08:07:04 UTC
svn commit: r706530 -
/geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/bundle/CommandBundle.java
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);
}