geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r699580 - /geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/registry/AliasCommand.java
Date Sat, 27 Sep 2008 07:03:20 GMT
Author: jdillon
Date: Sat Sep 27 00:03:19 2008
New Revision: 699580

URL: http://svn.apache.org/viewvc?rev=699580&view=rev
Log:
Drop unused constructor

Modified:
    geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/registry/AliasCommand.java

Modified: geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/registry/AliasCommand.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/registry/AliasCommand.java?rev=699580&r1=699579&r2=699580&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/registry/AliasCommand.java
(original)
+++ geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/registry/AliasCommand.java
Sat Sep 27 00:03:19 2008
@@ -32,7 +32,6 @@
 import org.apache.geronimo.gshell.wisdom.command.HelpSupport;
 import org.apache.geronimo.gshell.wisdom.command.MessageSourceCommandDocumenter;
 import org.apache.geronimo.gshell.wisdom.command.NullCommandCompleter;
-import org.springframework.beans.factory.annotation.Autowired;
 
 import java.util.Iterator;
 import java.util.List;
@@ -45,19 +44,21 @@
 public class AliasCommand
     extends CommandSupport
 {
-    @Autowired
-    private CommandLineExecutor executor;
+    // @Autowired
+    private final CommandLineExecutor executor;
 
-    private String name;
+    private final String name;
 
-    private String alias;
+    private final String alias;
 
-    public AliasCommand(final String name, final String alias) {
+    public AliasCommand(final String name, final String alias, final CommandLineExecutor
executor) {
         assert name != null;
         assert alias != null;
+        assert executor != null;
 
         this.name = name;
         this.alias = alias;
+        this.executor = executor;
 
         setAction(new AliasCommandAction());
         setDocumenter(new AliasCommandDocumenter());
@@ -65,14 +66,6 @@
         setMessages(new AliasCommandMessageSource());
     }
 
-    public AliasCommand(final String name, final String alias, final CommandLineExecutor
executor) {
-        this(name, alias);
-
-        assert executor != null;
-
-        this.executor = executor;
-    }
-
     @Override
     protected void prepareAction(final ShellContext context, final Object[] args) {
         // HACK: Reset state for proper appendArgs muck



Mime
View raw message