瀏覽代碼

Minor deprecations/tidying.

Change-Id: I219e6d22a5926f61145ccff63af5c489c587aa1d
Reviewed-on: http://gerrit.dmdirc.com/2845
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
tags/0.8rc1
Chris Smith 10 年之前
父節點
當前提交
0fc24e56bc

+ 4
- 0
src/com/dmdirc/commandparser/CommandArguments.java 查看文件

@@ -54,7 +54,9 @@ public class CommandArguments {
54 54
      * Creates a new command arguments parser for the specified line.
55 55
      *
56 56
      * @param line The line to be parsed
57
+     * @deprecated Specify a {@link CommandController}.
57 58
      */
59
+    @Deprecated
58 60
     public CommandArguments(final String line) {
59 61
         this(CommandManager.getCommandManager(), line);
60 62
     }
@@ -77,7 +79,9 @@ public class CommandArguments {
77 79
      *
78 80
      * @param words The words which form the line ot be parsed
79 81
      * @since 0.6.3
82
+     * @deprecated Specify a {@link CommandController}.
80 83
      */
84
+    @Deprecated
81 85
     public CommandArguments(final Collection<String> words) {
82 86
         this(CommandManager.getCommandManager(), words);
83 87
     }

+ 1
- 1
src/com/dmdirc/commandparser/parsers/CommandParser.java 查看文件

@@ -203,7 +203,7 @@ public abstract class CommandParser implements Serializable {
203 203
                     if (actCommand != null && actCommand.getValue() instanceof ExternalCommand) {
204 204
                         ((ExternalCommand) actCommand.getValue()).execute(
205 205
                                 origin, server, channel, silent,
206
-                                new CommandArguments(args.getCommandName()
206
+                                new CommandArguments(commandManager, args.getCommandName()
207 207
                                 + " " + args.getWordsAsString(2)));
208 208
                     }
209 209
                 }

Loading…
取消
儲存