瀏覽代碼

Commands style fixes

Change-Id: I4124ed9a760e174b7e3ce65b7a0dc7f00366b479
Reviewed-on: http://gerrit.dmdirc.com/1993
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
tags/0.6.6b1
Chris Smith 13 年之前
父節點
當前提交
c90b7be0aa
共有 47 個文件被更改,包括 39 次插入276 次删除
  1. 2
    3
      src/com/dmdirc/commandparser/CommandManager.java
  2. 1
    6
      src/com/dmdirc/commandparser/commands/channel/Ban.java
  3. 1
    6
      src/com/dmdirc/commandparser/commands/channel/ChannelSettings.java
  4. 1
    6
      src/com/dmdirc/commandparser/commands/channel/Cycle.java
  5. 1
    6
      src/com/dmdirc/commandparser/commands/channel/Invite.java
  6. 1
    6
      src/com/dmdirc/commandparser/commands/channel/KickReason.java
  7. 1
    1
      src/com/dmdirc/commandparser/commands/channel/Mode.java
  8. 0
    1
      src/com/dmdirc/commandparser/commands/channel/Names.java
  9. 1
    7
      src/com/dmdirc/commandparser/commands/channel/Part.java
  10. 1
    7
      src/com/dmdirc/commandparser/commands/channel/SetNickColour.java
  11. 1
    7
      src/com/dmdirc/commandparser/commands/channel/ShowTopic.java
  12. 1
    6
      src/com/dmdirc/commandparser/commands/chat/Me.java
  13. 1
    8
      src/com/dmdirc/commandparser/commands/global/AliasCommand.java
  14. 1
    7
      src/com/dmdirc/commandparser/commands/global/AllServers.java
  15. 1
    9
      src/com/dmdirc/commandparser/commands/global/Clear.java
  16. 1
    1
      src/com/dmdirc/commandparser/commands/global/Echo.java
  17. 1
    9
      src/com/dmdirc/commandparser/commands/global/Exit.java
  18. 1
    1
      src/com/dmdirc/commandparser/commands/global/Help.java
  19. 1
    1
      src/com/dmdirc/commandparser/commands/global/Ifplugin.java
  20. 1
    2
      src/com/dmdirc/commandparser/commands/global/LoadPlugin.java
  21. 1
    1
      src/com/dmdirc/commandparser/commands/global/NewServer.java
  22. 1
    10
      src/com/dmdirc/commandparser/commands/global/Notify.java
  23. 0
    9
      src/com/dmdirc/commandparser/commands/global/OpenWindow.java
  24. 0
    10
      src/com/dmdirc/commandparser/commands/global/ReloadActions.java
  25. 0
    9
      src/com/dmdirc/commandparser/commands/global/ReloadIdentities.java
  26. 1
    10
      src/com/dmdirc/commandparser/commands/global/ReloadPlugin.java
  27. 0
    10
      src/com/dmdirc/commandparser/commands/global/SaveConfig.java
  28. 1
    3
      src/com/dmdirc/commandparser/commands/global/Set.java
  29. 1
    10
      src/com/dmdirc/commandparser/commands/global/UnloadPlugin.java
  30. 0
    26
      src/com/dmdirc/commandparser/commands/query/package-info.java
  31. 1
    7
      src/com/dmdirc/commandparser/commands/server/AllChannels.java
  32. 1
    2
      src/com/dmdirc/commandparser/commands/server/Away.java
  33. 1
    9
      src/com/dmdirc/commandparser/commands/server/Back.java
  34. 1
    8
      src/com/dmdirc/commandparser/commands/server/ChangeServer.java
  35. 1
    2
      src/com/dmdirc/commandparser/commands/server/Ctcp.java
  36. 1
    2
      src/com/dmdirc/commandparser/commands/server/Disconnect.java
  37. 1
    1
      src/com/dmdirc/commandparser/commands/server/Ignore.java
  38. 0
    1
      src/com/dmdirc/commandparser/commands/server/JoinChannelCommand.java
  39. 1
    2
      src/com/dmdirc/commandparser/commands/server/Message.java
  40. 1
    2
      src/com/dmdirc/commandparser/commands/server/Nick.java
  41. 1
    2
      src/com/dmdirc/commandparser/commands/server/Notice.java
  42. 1
    2
      src/com/dmdirc/commandparser/commands/server/OpenQuery.java
  43. 1
    10
      src/com/dmdirc/commandparser/commands/server/Raw.java
  44. 1
    4
      src/com/dmdirc/commandparser/commands/server/RawServerCommand.java
  45. 1
    9
      src/com/dmdirc/commandparser/commands/server/Reconnect.java
  46. 0
    6
      src/com/dmdirc/commandparser/commands/server/ServerSettings.java
  47. 0
    9
      src/com/dmdirc/commandparser/commands/server/Umode.java

+ 2
- 3
src/com/dmdirc/commandparser/CommandManager.java 查看文件

@@ -29,7 +29,6 @@ import com.dmdirc.commandparser.commands.Command;
29 29
 import com.dmdirc.commandparser.commands.channel.*; //NOPMD
30 30
 import com.dmdirc.commandparser.commands.chat.*; //NOPMD
31 31
 import com.dmdirc.commandparser.commands.global.*; //NOPMD
32
-//import com.dmdirc.commandparser.commands.query.*; //NOPMD
33 32
 import com.dmdirc.commandparser.commands.server.*; //NOPMD
34 33
 import com.dmdirc.commandparser.parsers.CommandParser;
35 34
 import com.dmdirc.config.IdentityManager;
@@ -49,11 +48,11 @@ import java.util.Map;
49 48
  */
50 49
 public final class CommandManager {
51 50
 
52
-    /** A list of commands that have been instansiated. */
51
+    /** A list of commands that have been instantiated. */
53 52
     private static final Map<CommandInfo, Command> COMMANDS
54 53
             = new HashMap<CommandInfo, Command>();
55 54
 
56
-    /** A list of command parsers that have been instansiated. */
55
+    /** A list of command parsers that have been instantiated. */
57 56
     private static final MapList<CommandType, CommandParser> PARSERS
58 57
             = new MapList<CommandType, CommandParser>();
59 58
 

+ 1
- 6
src/com/dmdirc/commandparser/commands/channel/Ban.java 查看文件

@@ -38,12 +38,7 @@ import com.dmdirc.ui.input.TabCompletionType;
38 38
 /**
39 39
  * The kick command bans a specified user or host from the channel.
40 40
  */
41
-public final class Ban extends Command implements IntelligentCommand, CommandInfo {
42
-
43
-    /** Creates a new instance of Ban. */
44
-    public Ban() {
45
-        super();
46
-    }
41
+public class Ban extends Command implements IntelligentCommand, CommandInfo {
47 42
 
48 43
     /** {@inheritDoc} */
49 44
     @Override

+ 1
- 6
src/com/dmdirc/commandparser/commands/channel/ChannelSettings.java 查看文件

@@ -37,14 +37,9 @@ import com.dmdirc.ui.input.AdditionalTabTargets;
37 37
  * Opens the channel settings window for the channel.
38 38
  */
39 39
 @CommandOptions(allowOffline = false)
40
-public final class ChannelSettings extends Command implements
40
+public class ChannelSettings extends Command implements
41 41
         IntelligentCommand, CommandInfo {
42 42
 
43
-    /** Creates a new instance of ChannelSettings. */
44
-    public ChannelSettings() {
45
-        super();
46
-    }
47
-
48 43
     /** {@inheritDoc} */
49 44
     @Override
50 45
     public void execute(final FrameContainer origin,

+ 1
- 6
src/com/dmdirc/commandparser/commands/channel/Cycle.java 查看文件

@@ -36,12 +36,7 @@ import com.dmdirc.commandparser.commands.context.CommandContext;
36 36
  * The cycle command allows users to rapidly part and rejoin a channel.
37 37
  */
38 38
 @CommandOptions(allowOffline = false)
39
-public final class Cycle extends Command implements CommandInfo {
40
-
41
-    /** Creates a new instance of Cycle. */
42
-    public Cycle() {
43
-        super();
44
-    }
39
+public class Cycle extends Command implements CommandInfo {
45 40
 
46 41
     /** {@inheritDoc} */
47 42
     @Override

+ 1
- 6
src/com/dmdirc/commandparser/commands/channel/Invite.java 查看文件

@@ -41,12 +41,7 @@ import com.dmdirc.parser.interfaces.ChannelInfo;
41 41
  * @since 0.6.4
42 42
  */
43 43
 @CommandOptions(allowOffline = false)
44
-public final class Invite extends Command implements ExternalCommand, CommandInfo {
45
-
46
-    /** Creates a new instance of Invite. */
47
-    public Invite() {
48
-        super();
49
-    }
44
+public class Invite extends Command implements ExternalCommand, CommandInfo {
50 45
 
51 46
     /** {@inheritDoc} */
52 47
     @Override

+ 1
- 6
src/com/dmdirc/commandparser/commands/channel/KickReason.java 查看文件

@@ -41,14 +41,9 @@ import com.dmdirc.ui.input.TabCompletionType;
41 41
  * This version allows the user to specify a reason.
42 42
  */
43 43
 @CommandOptions(allowOffline = false)
44
-public final class KickReason extends Command implements IntelligentCommand,
44
+public class KickReason extends Command implements IntelligentCommand,
45 45
         CommandInfo {
46 46
 
47
-    /** Creates a new instance of KickReason. */
48
-    public KickReason() {
49
-        super();
50
-    }
51
-
52 47
     /** {@inheritDoc} */
53 48
     @Override
54 49
     public void execute(final FrameContainer origin,

+ 1
- 1
src/com/dmdirc/commandparser/commands/channel/Mode.java 查看文件

@@ -42,7 +42,7 @@ import com.dmdirc.ui.input.TabCompletionType;
42 42
  * The mode command allows the user to inspect and change channel modes.
43 43
  */
44 44
 @CommandOptions(allowOffline = false)
45
-public final class Mode extends Command implements IntelligentCommand,
45
+public class Mode extends Command implements IntelligentCommand,
46 46
         ExternalCommand, CommandInfo {
47 47
 
48 48
     /** {@inheritDoc} */

+ 0
- 1
src/com/dmdirc/commandparser/commands/channel/Names.java 查看文件

@@ -52,7 +52,6 @@ public class Names extends Command implements IntelligentCommand,
52 52
                 + channel.getChannelInfo().getName());
53 53
     }
54 54
 
55
-
56 55
     /** {@inheritDoc} */
57 56
     @Override
58 57
     public void execute(final FrameContainer origin, final Server server,

+ 1
- 7
src/com/dmdirc/commandparser/commands/channel/Part.java 查看文件

@@ -34,15 +34,9 @@ import com.dmdirc.commandparser.commands.context.CommandContext;
34 34
 
35 35
 /**
36 36
  * The part command parts the current channel with a specified part message.
37
- * @author chris
38 37
  */
39 38
 @CommandOptions(allowOffline=false)
40
-public final class Part extends Command implements CommandInfo {
41
-
42
-    /** Creates a new instance of Part. */
43
-    public Part() {
44
-        super();
45
-    }
39
+public class Part extends Command implements CommandInfo {
46 40
 
47 41
     /** {@inheritDoc} */
48 42
     @Override

+ 1
- 7
src/com/dmdirc/commandparser/commands/channel/SetNickColour.java 查看文件

@@ -41,16 +41,10 @@ import java.awt.Color;
41 41
 
42 42
 /**
43 43
  * Allows the user to set a nickname on the channel to use a custom colour.
44
- * @author chris
45 44
  */
46
-public final class SetNickColour extends Command implements IntelligentCommand,
45
+public class SetNickColour extends Command implements IntelligentCommand,
47 46
         CommandInfo {
48 47
 
49
-    /** Creates a new instance of SetNickColour. */
50
-    public SetNickColour() {
51
-        super();
52
-    }
53
-
54 48
     /** {@inheritDoc} */
55 49
     @Override
56 50
     public void execute(final FrameContainer origin,

+ 1
- 7
src/com/dmdirc/commandparser/commands/channel/ShowTopic.java 查看文件

@@ -37,17 +37,11 @@ import com.dmdirc.parser.interfaces.ChannelInfo;
37 37
 
38 38
 /**
39 39
  * The show topic command shows the user the current topic.
40
- * @author chris
41 40
  */
42 41
 @CommandOptions(allowOffline=false)
43
-public final class ShowTopic extends Command implements ExternalCommand,
42
+public class ShowTopic extends Command implements ExternalCommand,
44 43
         CommandInfo {
45 44
 
46
-    /** Creates a new instance of ShowTopic. */
47
-    public ShowTopic() {
48
-        super();
49
-    }
50
-
51 45
     /** {@inheritDoc} */
52 46
     @Override
53 47
     public void execute(final FrameContainer origin,

+ 1
- 6
src/com/dmdirc/commandparser/commands/chat/Me.java 查看文件

@@ -37,12 +37,7 @@ import com.dmdirc.util.validators.ValidationResponse;
37 37
 /**
38 38
  * The me command sends a CTCP action to the current channel.
39 39
  */
40
-public final class Me extends Command implements ValidatingCommand, CommandInfo {
41
-
42
-    /** Creates a new instance of Me. */
43
-    public Me() {
44
-        super();
45
-    }
40
+public class Me extends Command implements ValidatingCommand, CommandInfo {
46 41
 
47 42
     /** {@inheritDoc} */
48 43
     @Override

+ 1
- 8
src/com/dmdirc/commandparser/commands/global/AliasCommand.java 查看文件

@@ -40,16 +40,9 @@ import com.dmdirc.ui.input.TabCompleter;
40 40
 /**
41 41
  * The alias command allows users to create aliases on-the-fly.
42 42
  */
43
-public final class AliasCommand extends Command implements
43
+public class AliasCommand extends Command implements
44 44
         IntelligentCommand, CommandInfo {
45 45
 
46
-    /**
47
-     * Creates a new instance of Active.
48
-     */
49
-    public AliasCommand() {
50
-        super();
51
-    }
52
-
53 46
     /** {@inheritDoc} */
54 47
     @Override
55 48
     public void execute(final FrameContainer origin,

+ 1
- 7
src/com/dmdirc/commandparser/commands/global/AllServers.java 查看文件

@@ -37,14 +37,9 @@ import com.dmdirc.ui.input.TabCompleter;
37 37
 /**
38 38
  * The AllServers command allows users to issue commands to all servers.
39 39
  */
40
-public final class AllServers extends Command implements IntelligentCommand,
40
+public class AllServers extends Command implements IntelligentCommand,
41 41
         CommandInfo{
42 42
 
43
-    /** Creates a new instance of AllServers. */
44
-    public AllServers() {
45
-        super();
46
-    }
47
-
48 43
     /** {@inheritDoc} */
49 44
     @Override
50 45
     public void execute(final FrameContainer origin,
@@ -56,7 +51,6 @@ public final class AllServers extends Command implements IntelligentCommand,
56 51
         }
57 52
     }
58 53
 
59
-
60 54
     /** {@inheritDoc} */
61 55
     @Override
62 56
     public String getName() {

+ 1
- 9
src/com/dmdirc/commandparser/commands/global/Clear.java 查看文件

@@ -34,16 +34,9 @@ import com.dmdirc.ui.input.AdditionalTabTargets;
34 34
 /**
35 35
  * The clear command clears the main text area of the current window.
36 36
  */
37
-public final class Clear extends Command implements IntelligentCommand,
37
+public class Clear extends Command implements IntelligentCommand,
38 38
         CommandInfo {
39 39
 
40
-    /**
41
-     * Creates a new instance of Clear.
42
-     */
43
-    public Clear() {
44
-        super();
45
-    }
46
-
47 40
     /** {@inheritDoc} */
48 41
     @Override
49 42
     public void execute(final FrameContainer origin,
@@ -51,7 +44,6 @@ public final class Clear extends Command implements IntelligentCommand,
51 44
         origin.getDocument().clear();
52 45
     }
53 46
 
54
-
55 47
     /** {@inheritDoc} */
56 48
     @Override
57 49
     public String getName() {

+ 1
- 1
src/com/dmdirc/commandparser/commands/global/Echo.java 查看文件

@@ -44,7 +44,7 @@ import java.util.List;
44 44
 /**
45 45
  * The echo commands simply echos text to the current window.
46 46
  */
47
-public final class Echo extends Command implements IntelligentCommand,
47
+public class Echo extends Command implements IntelligentCommand,
48 48
         CommandInfo {
49 49
 
50 50
     /** The flag used to specify a timestamp for the echo command. */

+ 1
- 9
src/com/dmdirc/commandparser/commands/global/Exit.java 查看文件

@@ -35,14 +35,7 @@ import com.dmdirc.commandparser.commands.context.CommandContext;
35 35
  * When the client quits, it disconnects all servers (with the quit message
36 36
  * supplied) and saves the config file.
37 37
  */
38
-public final class Exit extends Command implements CommandInfo {
39
-
40
-    /**
41
-     * Creates a new instance of Exit.
42
-     */
43
-    public Exit() {
44
-        super();
45
-    }
38
+public class Exit extends Command implements CommandInfo {
46 39
 
47 40
     /** {@inheritDoc} */
48 41
     @Override
@@ -52,7 +45,6 @@ public final class Exit extends Command implements CommandInfo {
52 45
                 : origin.getConfigManager().getOption("general", "closemessage"));
53 46
     }
54 47
 
55
-
56 48
     /** {@inheritDoc}. */
57 49
     @Override
58 50
     public String getName() {

+ 1
- 1
src/com/dmdirc/commandparser/commands/global/Help.java 查看文件

@@ -45,7 +45,7 @@ import java.util.Map;
45 45
  * their arguments, and a description. It is context-aware, so channel commands
46 46
  * are only displayed when in a channel window, for example.
47 47
  */
48
-public final class Help extends Command implements IntelligentCommand, CommandInfo {
48
+public class Help extends Command implements IntelligentCommand, CommandInfo {
49 49
 
50 50
     /** {@inheritDoc} */
51 51
     @Override

+ 1
- 1
src/com/dmdirc/commandparser/commands/global/Ifplugin.java 查看文件

@@ -40,7 +40,7 @@ import com.dmdirc.ui.input.TabCompleter;
40 40
  * The if plugin command allows the user to execute commands based on whether
41 41
  * or not a plugin is loaded.
42 42
  */
43
-public final class Ifplugin extends Command implements IntelligentCommand,
43
+public class Ifplugin extends Command implements IntelligentCommand,
44 44
         CommandInfo {
45 45
 
46 46
     /** {@inheritDoc} */

+ 1
- 2
src/com/dmdirc/commandparser/commands/global/LoadPlugin.java 查看文件

@@ -36,7 +36,7 @@ import com.dmdirc.ui.input.AdditionalTabTargets;
36 36
 /**
37 37
  * Allows the user to load a plugin.
38 38
  */
39
-public final class LoadPlugin extends Command implements IntelligentCommand,
39
+public class LoadPlugin extends Command implements IntelligentCommand,
40 40
         CommandInfo {
41 41
 
42 42
     /** {@inheritDoc} */
@@ -74,7 +74,6 @@ public final class LoadPlugin extends Command implements IntelligentCommand,
74 74
         }
75 75
     }
76 76
 
77
-
78 77
     /** {@inheritDoc} */
79 78
     @Override
80 79
     public String getName() {

+ 1
- 1
src/com/dmdirc/commandparser/commands/global/NewServer.java 查看文件

@@ -45,7 +45,7 @@ import java.util.regex.Pattern;
45 45
 /**
46 46
  * The new server command allows users to open a new server window.
47 47
  */
48
-public final class NewServer extends Command implements IntelligentCommand,
48
+public class NewServer extends Command implements IntelligentCommand,
49 49
         CommandInfo {
50 50
 
51 51
     /** {@inheritDoc} */

+ 1
- 10
src/com/dmdirc/commandparser/commands/global/Notify.java 查看文件

@@ -37,19 +37,10 @@ import java.awt.Color;
37 37
 /**
38 38
  * The notify command allows the user to set the notification colour for a
39 39
  * window.
40
- *
41
- * @author chris
42 40
  */
43
-public final class Notify extends Command implements IntelligentCommand,
41
+public class Notify extends Command implements IntelligentCommand,
44 42
         CommandInfo {
45 43
 
46
-    /**
47
-     * Creates a new instance of Notify.
48
-     */
49
-    public Notify() {
50
-        super();
51
-    }
52
-
53 44
     /** {@inheritDoc} */
54 45
     @Override
55 46
     public void execute(final FrameContainer origin,

+ 0
- 9
src/com/dmdirc/commandparser/commands/global/OpenWindow.java 查看文件

@@ -35,18 +35,9 @@ import com.dmdirc.ui.input.AdditionalTabTargets;
35 35
 
36 36
 /**
37 37
  * Opens a new window.
38
- *
39
- * @author chris
40 38
  */
41 39
 public class OpenWindow extends Command implements IntelligentCommand, CommandInfo {
42 40
 
43
-    /**
44
-     * Creates a new instance of OpenWindow.
45
-     */
46
-    public OpenWindow() {
47
-        super();
48
-    }
49
-
50 41
     /** {@inheritDoc} */
51 42
     @Override
52 43
     public void execute(final FrameContainer origin,

+ 0
- 10
src/com/dmdirc/commandparser/commands/global/ReloadActions.java 查看文件

@@ -34,19 +34,10 @@ import com.dmdirc.ui.input.AdditionalTabTargets;
34 34
 
35 35
 /**
36 36
  * Allows the user to reload actions.
37
- *
38
- * @author chris
39 37
  */
40 38
 public final class ReloadActions extends Command implements IntelligentCommand,
41 39
         CommandInfo {
42 40
 
43
-    /**
44
-     * Creates a new instance of ReloadActions.
45
-     */
46
-    public ReloadActions() {
47
-        super();
48
-    }
49
-
50 41
     /** {@inheritDoc} */
51 42
     @Override
52 43
     public void execute(final FrameContainer origin,
@@ -55,7 +46,6 @@ public final class ReloadActions extends Command implements IntelligentCommand,
55 46
         sendLine(origin, args.isSilent(), FORMAT_OUTPUT, "Actions reloaded.");
56 47
     }
57 48
 
58
-
59 49
     /** {@inheritDoc}. */
60 50
     @Override
61 51
     public String getName() {

+ 0
- 9
src/com/dmdirc/commandparser/commands/global/ReloadIdentities.java 查看文件

@@ -34,19 +34,10 @@ import com.dmdirc.ui.input.AdditionalTabTargets;
34 34
 
35 35
 /**
36 36
  * Allows the user to reload identities.
37
- *
38
- * @author chris
39 37
  */
40 38
 public class ReloadIdentities extends Command implements IntelligentCommand,
41 39
         CommandInfo {
42 40
 
43
-    /**
44
-     * Creates a new instance of ReloadIdentities.
45
-     */
46
-    public ReloadIdentities() {
47
-        super();
48
-    }
49
-
50 41
     /** {@inheritDoc} */
51 42
     @Override
52 43
     public void execute(final FrameContainer origin,

+ 1
- 10
src/com/dmdirc/commandparser/commands/global/ReloadPlugin.java 查看文件

@@ -35,19 +35,10 @@ import com.dmdirc.ui.input.AdditionalTabTargets;
35 35
 
36 36
 /**
37 37
  * Allows the user to reload a plugin.
38
- *
39
- * @author chris
40 38
  */
41
-public final class ReloadPlugin extends Command implements IntelligentCommand,
39
+public class ReloadPlugin extends Command implements IntelligentCommand,
42 40
         CommandInfo {
43 41
 
44
-    /**
45
-     * Creates a new instance of ReloadPlugin.
46
-     */
47
-    public ReloadPlugin() {
48
-        super();
49
-    }
50
-
51 42
     /** {@inheritDoc} */
52 43
     @Override
53 44
     public void execute(final FrameContainer origin,

+ 0
- 10
src/com/dmdirc/commandparser/commands/global/SaveConfig.java 查看文件

@@ -34,19 +34,10 @@ import com.dmdirc.ui.input.AdditionalTabTargets;
34 34
 
35 35
 /**
36 36
  * Allows the user to save the config file.
37
- *
38
- * @author chris
39 37
  */
40 38
 public final class SaveConfig extends Command implements IntelligentCommand,
41 39
         CommandInfo {
42 40
 
43
-    /**
44
-     * Creates a new instance of SaveConfig.
45
-     */
46
-    public SaveConfig() {
47
-        super();
48
-    }
49
-
50 41
     /** {@inheritDoc} */
51 42
     @Override
52 43
     public void execute(final FrameContainer origin,
@@ -56,7 +47,6 @@ public final class SaveConfig extends Command implements IntelligentCommand,
56 47
         sendLine(origin, args.isSilent(), FORMAT_OUTPUT, "Configuration file saved.");
57 48
     }
58 49
 
59
-
60 50
     /** {@inheritDoc} */
61 51
     @Override
62 52
     public String getName() {

+ 1
- 3
src/com/dmdirc/commandparser/commands/global/Set.java 查看文件

@@ -44,10 +44,8 @@ import java.util.List;
44 44
 
45 45
 /**
46 46
  * The set command allows the user to inspect and change global config settings.
47
- *
48
- * @author chris
49 47
  */
50
-public final class Set extends Command implements IntelligentCommand, CommandInfo {
48
+public class Set extends Command implements IntelligentCommand, CommandInfo {
51 49
 
52 50
     /** The flag to indicate the set command should apply to a server's settings. */
53 51
     private final CommandFlag serverFlag = new CommandFlag("server");

+ 1
- 10
src/com/dmdirc/commandparser/commands/global/UnloadPlugin.java 查看文件

@@ -35,19 +35,10 @@ import com.dmdirc.ui.input.AdditionalTabTargets;
35 35
 
36 36
 /**
37 37
  * Allows the user to unload a plugin.
38
- *
39
- * @author chris
40 38
  */
41
-public final class UnloadPlugin extends Command implements IntelligentCommand,
39
+public class UnloadPlugin extends Command implements IntelligentCommand,
42 40
         CommandInfo {
43 41
 
44
-    /**
45
-     * Creates a new instance of UnloadPlugin.
46
-     */
47
-    public UnloadPlugin() {
48
-        super();
49
-    }
50
-
51 42
     /** {@inheritDoc} */
52 43
     @Override
53 44
     public void execute(final FrameContainer origin,

+ 0
- 26
src/com/dmdirc/commandparser/commands/query/package-info.java 查看文件

@@ -1,26 +0,0 @@
1
-/*
2
- * Copyright (c) 2006-2011 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
- *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
10
- *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
13
- *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
21
- */
22
-
23
-/**
24
- * Commands related to or associated with a query.
25
- */
26
-package com.dmdirc.commandparser.commands.query;

+ 1
- 7
src/com/dmdirc/commandparser/commands/server/AllChannels.java 查看文件

@@ -38,14 +38,9 @@ import com.dmdirc.ui.input.TabCompleter;
38 38
  * The AllChannels command allows the user to issue a command to all channels
39 39
  * on a server.
40 40
  */
41
-public final class AllChannels extends Command implements IntelligentCommand,
41
+public class AllChannels extends Command implements IntelligentCommand,
42 42
         CommandInfo {
43 43
 
44
-    /** Creates a new instance of AllChannels. */
45
-    public AllChannels() {
46
-        super();
47
-    }
48
-
49 44
     /** {@inheritDoc} */
50 45
     @Override
51 46
     public void execute(final FrameContainer origin,
@@ -59,7 +54,6 @@ public final class AllChannels extends Command implements IntelligentCommand,
59 54
         }
60 55
     }
61 56
 
62
-
63 57
     /** {@inheritDoc} */
64 58
     @Override
65 59
     public String getName() {

+ 1
- 2
src/com/dmdirc/commandparser/commands/server/Away.java 查看文件

@@ -36,7 +36,7 @@ import com.dmdirc.commandparser.commands.context.ServerCommandContext;
36 36
  * The away command allows the user to set their away message.
37 37
  */
38 38
 @CommandOptions(allowOffline = false)
39
-public final class Away extends Command implements CommandInfo {
39
+public class Away extends Command implements CommandInfo {
40 40
 
41 41
     /** {@inheritDoc} */
42 42
     @Override
@@ -52,7 +52,6 @@ public final class Away extends Command implements CommandInfo {
52 52
         }
53 53
     }
54 54
 
55
-
56 55
     /** {@inheritDoc} */
57 56
     @Override
58 57
     public String getName() {

+ 1
- 9
src/com/dmdirc/commandparser/commands/server/Back.java 查看文件

@@ -38,14 +38,7 @@ import com.dmdirc.ui.input.AdditionalTabTargets;
38 38
  * The back command allows the user to unset their away status.
39 39
  */
40 40
 @CommandOptions(allowOffline = false)
41
-public final class Back extends Command implements IntelligentCommand, CommandInfo {
42
-
43
-    /**
44
-     * Creates a new instance of Back.
45
-     */
46
-    public Back() {
47
-        super();
48
-    }
41
+public class Back extends Command implements IntelligentCommand, CommandInfo {
49 42
 
50 43
     /** {@inheritDoc} */
51 44
     @Override
@@ -55,7 +48,6 @@ public final class Back extends Command implements IntelligentCommand, CommandIn
55 48
         server.getParser().getLocalClient().setBack();
56 49
     }
57 50
 
58
-
59 51
     /** {@inheritDoc}. */
60 52
     @Override
61 53
     public String getName() {

+ 1
- 8
src/com/dmdirc/commandparser/commands/server/ChangeServer.java 查看文件

@@ -38,14 +38,7 @@ import java.net.URISyntaxException;
38 38
 /**
39 39
  * The /server command allows the user to connect to a new server.
40 40
  */
41
-public final class ChangeServer extends Command implements CommandInfo {
42
-
43
-    /**
44
-     * Creates a new instance of ChangeServer.
45
-     */
46
-    public ChangeServer() {
47
-        super();
48
-    }
41
+public class ChangeServer extends Command implements CommandInfo {
49 42
 
50 43
     /** {@inheritDoc} */
51 44
     @Override

+ 1
- 2
src/com/dmdirc/commandparser/commands/server/Ctcp.java 查看文件

@@ -39,7 +39,7 @@ import com.dmdirc.ui.input.TabCompletionType;
39 39
  * Allows the user to send CTCP messages.
40 40
  */
41 41
 @CommandOptions(allowOffline = false)
42
-public final class Ctcp extends Command implements IntelligentCommand,
42
+public class Ctcp extends Command implements IntelligentCommand,
43 43
         CommandInfo {
44 44
 
45 45
     /** {@inheritDoc} */
@@ -57,7 +57,6 @@ public final class Ctcp extends Command implements IntelligentCommand,
57 57
         }
58 58
     }
59 59
 
60
-
61 60
     /** {@inheritDoc}. */
62 61
     @Override
63 62
     public String getName() {

+ 1
- 2
src/com/dmdirc/commandparser/commands/server/Disconnect.java 查看文件

@@ -34,7 +34,7 @@ import com.dmdirc.commandparser.commands.context.ServerCommandContext;
34 34
 /**
35 35
  * The disconnect command disconnects from the current server.
36 36
  */
37
-public final class Disconnect extends Command implements CommandInfo {
37
+public class Disconnect extends Command implements CommandInfo {
38 38
 
39 39
     /** {@inheritDoc} */
40 40
     @Override
@@ -52,7 +52,6 @@ public final class Disconnect extends Command implements CommandInfo {
52 52
         server.disconnect(line);
53 53
     }
54 54
 
55
-
56 55
     /** {@inheritDoc} */
57 56
     @Override
58 57
     public String getName() {

+ 1
- 1
src/com/dmdirc/commandparser/commands/server/Ignore.java 查看文件

@@ -42,7 +42,7 @@ import java.util.regex.PatternSyntaxException;
42 42
 /**
43 43
  * Allows the user to add/view/delete ignores.
44 44
  */
45
-public final class Ignore extends Command implements IntelligentCommand,
45
+public class Ignore extends Command implements IntelligentCommand,
46 46
         CommandInfo {
47 47
 
48 48
     /** {@inheritDoc} */

+ 0
- 1
src/com/dmdirc/commandparser/commands/server/JoinChannelCommand.java 查看文件

@@ -91,7 +91,6 @@ public class JoinChannelCommand extends Command implements
91 91
         server.join(!args.isSilent(), channels.toArray(new ChannelJoinRequest[0]));
92 92
     }
93 93
 
94
-
95 94
     /** {@inheritDoc} */
96 95
     @Override
97 96
     public String getName() {

+ 1
- 2
src/com/dmdirc/commandparser/commands/server/Message.java 查看文件

@@ -42,7 +42,7 @@ import com.dmdirc.ui.interfaces.InputWindow;
42 42
  * Allows the user to send privmsgs.
43 43
  */
44 44
 @CommandOptions(allowOffline = false)
45
-public final class Message extends Command implements IntelligentCommand,
45
+public class Message extends Command implements IntelligentCommand,
46 46
         WrappableCommand, CommandInfo {
47 47
 
48 48
     /** {@inheritDoc} */
@@ -79,7 +79,6 @@ public final class Message extends Command implements IntelligentCommand,
79 79
         }
80 80
     }
81 81
 
82
-
83 82
     /** {@inheritDoc} */
84 83
     @Override
85 84
     public String getName() {

+ 1
- 2
src/com/dmdirc/commandparser/commands/server/Nick.java 查看文件

@@ -39,7 +39,7 @@ import com.dmdirc.ui.input.TabCompletionType;
39 39
  * Allows the user to change nickname.
40 40
  */
41 41
 @CommandOptions(allowOffline = false)
42
-public final class Nick extends Command implements IntelligentCommand,
42
+public class Nick extends Command implements IntelligentCommand,
43 43
         CommandInfo {
44 44
 
45 45
     /** {@inheritDoc} */
@@ -55,7 +55,6 @@ public final class Nick extends Command implements IntelligentCommand,
55 55
         server.getParser().getLocalClient().setNickname(args.getArguments()[0]);
56 56
     }
57 57
 
58
-
59 58
     /** {@inheritDoc} */
60 59
     @Override
61 60
     public String getName() {

+ 1
- 2
src/com/dmdirc/commandparser/commands/server/Notice.java 查看文件

@@ -39,7 +39,7 @@ import com.dmdirc.ui.input.TabCompletionType;
39 39
  * Allows the user to send notices.
40 40
  */
41 41
 @CommandOptions(allowOffline = false)
42
-public final class Notice extends Command implements IntelligentCommand,
42
+public class Notice extends Command implements IntelligentCommand,
43 43
         CommandInfo {
44 44
 
45 45
     /** {@inheritDoc} */
@@ -57,7 +57,6 @@ public final class Notice extends Command implements IntelligentCommand,
57 57
         }
58 58
     }
59 59
 
60
-
61 60
     /** {@inheritDoc} */
62 61
     @Override
63 62
     public String getName() {

+ 1
- 2
src/com/dmdirc/commandparser/commands/server/OpenQuery.java 查看文件

@@ -42,7 +42,7 @@ import com.dmdirc.ui.messages.Styliser;
42 42
 /**
43 43
  * Allows the user to open a query dialog with another user.
44 44
  */
45
-public final class OpenQuery extends Command implements IntelligentCommand,
45
+public class OpenQuery extends Command implements IntelligentCommand,
46 46
         WrappableCommand, CommandInfo {
47 47
 
48 48
     /** {@inheritDoc} */
@@ -76,7 +76,6 @@ public final class OpenQuery extends Command implements IntelligentCommand,
76 76
         }
77 77
     }
78 78
 
79
-
80 79
     /** {@inheritDoc} */
81 80
     @Override
82 81
     public String getName() {

+ 1
- 10
src/com/dmdirc/commandparser/commands/server/Raw.java 查看文件

@@ -35,17 +35,9 @@ import com.dmdirc.commandparser.commands.context.ServerCommandContext;
35 35
 /**
36 36
  * The raw command allows the user to send a raw line of text directly to the
37 37
  * irc server.
38
- * @author chris
39 38
  */
40 39
 @CommandOptions(allowOffline=false)
41
-public final class Raw extends Command implements CommandInfo {
42
-
43
-    /**
44
-     * Creates a new instance of Raw.
45
-     */
46
-    public Raw() {
47
-        super();
48
-    }
40
+public class Raw extends Command implements CommandInfo {
49 41
 
50 42
     /** {@inheritDoc} */
51 43
     @Override
@@ -58,7 +50,6 @@ public final class Raw extends Command implements CommandInfo {
58 50
         sendLine(origin, args.isSilent(), "rawCommand", line);
59 51
     }
60 52
 
61
-
62 53
     /** {@inheritDoc} */
63 54
     @Override
64 55
     public String getName() {

+ 1
- 4
src/com/dmdirc/commandparser/commands/server/RawServerCommand.java 查看文件

@@ -35,11 +35,9 @@ import com.dmdirc.commandparser.commands.context.ServerCommandContext;
35 35
 /**
36 36
  * Implements a raw server command (i.e., a command that is sent to the server
37 37
  * as-is.
38
- *
39
- * @author chris
40 38
  */
41 39
 @CommandOptions(allowOffline=false)
42
-public final class RawServerCommand extends Command implements CommandInfo {
40
+public class RawServerCommand extends Command implements CommandInfo {
43 41
 
44 42
     /** The name of this raw command. */
45 43
     private final String myName;
@@ -63,7 +61,6 @@ public final class RawServerCommand extends Command implements CommandInfo {
63 61
         server.getParser().sendRawMessage(myName.toUpperCase() + " " + args.getArgumentsAsString());
64 62
     }
65 63
 
66
-
67 64
     /** {@inheritDoc} */
68 65
     @Override
69 66
     public String getName() {

+ 1
- 9
src/com/dmdirc/commandparser/commands/server/Reconnect.java 查看文件

@@ -33,16 +33,8 @@ import com.dmdirc.commandparser.commands.context.ServerCommandContext;
33 33
 
34 34
 /**
35 35
  * The reconnect command reconnects to the current server.
36
- * @author chris
37 36
  */
38
-public final class Reconnect extends Command implements CommandInfo {
39
-
40
-    /**
41
-     * Creates a new instance of Reconnect.
42
-     */
43
-    public Reconnect() {
44
-        super();
45
-    }
37
+public class Reconnect extends Command implements CommandInfo {
46 38
 
47 39
     /** {@inheritDoc} */
48 40
     @Override

+ 0
- 6
src/com/dmdirc/commandparser/commands/server/ServerSettings.java 查看文件

@@ -37,18 +37,12 @@ import com.dmdirc.ui.input.AdditionalTabTargets;
37 37
 /**
38 38
  * Opens the server settings window for the server.
39 39
  *
40
- * @author Simon
41 40
  * @since 0.6.4
42 41
  */
43 42
 @CommandOptions(allowOffline=false)
44 43
 public class ServerSettings extends Command implements IntelligentCommand,
45 44
         CommandInfo {
46 45
 
47
-    /** Creates a new instance of ServerSettings. */
48
-    public ServerSettings() {
49
-        super();
50
-    }
51
-
52 46
     /** {@inheritDoc} */
53 47
     @Override
54 48
     public void execute(final FrameContainer origin,

+ 0
- 9
src/com/dmdirc/commandparser/commands/server/Umode.java 查看文件

@@ -35,19 +35,10 @@ import com.dmdirc.commandparser.commands.context.ServerCommandContext;
35 35
 
36 36
 /**
37 37
  * Allows the user to change user modes.
38
- *
39
- * @author chris
40 38
  */
41 39
 @CommandOptions(allowOffline=false)
42 40
 public class Umode extends Command implements CommandInfo {
43 41
 
44
-    /**
45
-     * Creates a new instance of Umode.
46
-     */
47
-    public Umode() {
48
-        super();
49
-    }
50
-
51 42
     /** {@inheritDoc} */
52 43
     @Override
53 44
     public void execute(final FrameContainer origin,

Loading…
取消
儲存