Pārlūkot izejas kodu

Style fixes

Change-Id: If63e94dcf0aec9e9aa99e84f9962879fca46051f
Reviewed-on: http://gerrit.dmdirc.com/1931
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Reviewed-by: Greg Holmes <greg@dmdirc.com>
tags/0.6.6b1
Chris Smith 13 gadus atpakaļ
vecāks
revīzija
77b570a30f
100 mainītis faili ar 206 papildinājumiem un 429 dzēšanām
  1. 0
    2
      src/com/dmdirc/ChannelClientProperty.java
  2. 0
    2
      src/com/dmdirc/EventHandler.java
  3. 0
    2
      src/com/dmdirc/GlobalWindow.java
  4. 0
    2
      src/com/dmdirc/Invite.java
  5. 0
    2
      src/com/dmdirc/MessageEncoder.java
  6. 1
    1
      src/com/dmdirc/Raw.java
  7. 2
    2
      src/com/dmdirc/ServerEventHandler.java
  8. 1
    3
      src/com/dmdirc/actions/Action.java
  9. 0
    1
      src/com/dmdirc/actions/ActionCondition.java
  10. 3
    5
      src/com/dmdirc/actions/ActionGroup.java
  11. 1
    1
      src/com/dmdirc/actions/ActionManager.java
  12. 0
    2
      src/com/dmdirc/actions/ActionSubstitutor.java
  13. 0
    2
      src/com/dmdirc/actions/ActionTypeComparator.java
  14. 0
    2
      src/com/dmdirc/actions/ConditionTree.java
  15. 19
    21
      src/com/dmdirc/actions/ConditionTreeFactory.java
  16. 0
    1
      src/com/dmdirc/actions/CoreActionComparison.java
  17. 6
    6
      src/com/dmdirc/actions/CoreActionComponent.java
  18. 0
    1
      src/com/dmdirc/actions/CoreActionType.java
  19. 0
    1
      src/com/dmdirc/actions/interfaces/ActionComparison.java
  20. 0
    2
      src/com/dmdirc/actions/interfaces/ActionComponent.java
  21. 0
    1
      src/com/dmdirc/actions/interfaces/ActionMetaType.java
  22. 0
    1
      src/com/dmdirc/actions/interfaces/ActionType.java
  23. 0
    2
      src/com/dmdirc/actions/metatypes/ChannelEvents.java
  24. 0
    2
      src/com/dmdirc/actions/metatypes/ClientEvents.java
  25. 0
    2
      src/com/dmdirc/actions/metatypes/LinkEvents.java
  26. 1
    1
      src/com/dmdirc/actions/validators/ConditionRuleValidator.java
  27. 0
    2
      src/com/dmdirc/actions/wrappers/AliasWrapper.java
  28. 108
    108
      src/com/dmdirc/actions/wrappers/PerformWrapper.java
  29. 0
    2
      src/com/dmdirc/commandline/CommandLineParser.java
  30. 0
    1
      src/com/dmdirc/commandparser/CommandArguments.java
  31. 0
    2
      src/com/dmdirc/commandparser/CommandInfo.java
  32. 0
    1
      src/com/dmdirc/commandparser/CommandInfoPair.java
  33. 0
    2
      src/com/dmdirc/commandparser/CommandManager.java
  34. 0
    2
      src/com/dmdirc/commandparser/CommandType.java
  35. 2
    4
      src/com/dmdirc/commandparser/PopupMenuItem.java
  36. 0
    2
      src/com/dmdirc/commandparser/commands/Command.java
  37. 0
    1
      src/com/dmdirc/commandparser/commands/CommandOptions.java
  38. 0
    2
      src/com/dmdirc/commandparser/commands/ExternalCommand.java
  39. 11
    13
      src/com/dmdirc/commandparser/commands/IntelligentCommand.java
  40. 0
    2
      src/com/dmdirc/commandparser/commands/channel/Ban.java
  41. 1
    2
      src/com/dmdirc/commandparser/commands/channel/ChannelSettings.java
  42. 1
    3
      src/com/dmdirc/commandparser/commands/channel/Cycle.java
  43. 1
    2
      src/com/dmdirc/commandparser/commands/channel/Invite.java
  44. 1
    2
      src/com/dmdirc/commandparser/commands/channel/KickReason.java
  45. 1
    7
      src/com/dmdirc/commandparser/commands/channel/Mode.java
  46. 1
    10
      src/com/dmdirc/commandparser/commands/channel/Names.java
  47. 0
    1
      src/com/dmdirc/commandparser/commands/context/ChannelCommandContext.java
  48. 0
    1
      src/com/dmdirc/commandparser/commands/context/CommandContext.java
  49. 2
    2
      src/com/dmdirc/commandparser/commands/flags/CommandFlagResult.java
  50. 0
    1
      src/com/dmdirc/commandparser/commands/global/Active.java
  51. 0
    2
      src/com/dmdirc/commandparser/commands/global/AliasCommand.java
  52. 0
    1
      src/com/dmdirc/commandparser/commands/global/AllServers.java
  53. 0
    2
      src/com/dmdirc/commandparser/commands/global/Clear.java
  54. 0
    2
      src/com/dmdirc/commandparser/commands/global/Echo.java
  55. 0
    1
      src/com/dmdirc/commandparser/commands/global/Exit.java
  56. 0
    8
      src/com/dmdirc/commandparser/commands/global/Help.java
  57. 0
    9
      src/com/dmdirc/commandparser/commands/global/Ifplugin.java
  58. 0
    8
      src/com/dmdirc/commandparser/commands/global/Input.java
  59. 0
    9
      src/com/dmdirc/commandparser/commands/global/NewServer.java
  60. 0
    1
      src/com/dmdirc/commandparser/commands/server/AllChannels.java
  61. 1
    2
      src/com/dmdirc/commandparser/commands/server/Away.java
  62. 1
    2
      src/com/dmdirc/commandparser/commands/server/Back.java
  63. 0
    2
      src/com/dmdirc/commandparser/commands/server/ChangeServer.java
  64. 1
    9
      src/com/dmdirc/commandparser/commands/server/Ctcp.java
  65. 0
    8
      src/com/dmdirc/commandparser/commands/server/Disconnect.java
  66. 0
    8
      src/com/dmdirc/commandparser/commands/server/Ignore.java
  67. 0
    1
      src/com/dmdirc/commandparser/commands/server/JoinChannelCommand.java
  68. 1
    9
      src/com/dmdirc/commandparser/commands/server/Message.java
  69. 1
    9
      src/com/dmdirc/commandparser/commands/server/Nick.java
  70. 1
    9
      src/com/dmdirc/commandparser/commands/server/Notice.java
  71. 0
    2
      src/com/dmdirc/commandparser/parsers/ChannelCommandParser.java
  72. 0
    1
      src/com/dmdirc/commandparser/parsers/ChatCommandParser.java
  73. 1
    4
      src/com/dmdirc/commandparser/parsers/CommandParser.java
  74. 0
    1
      src/com/dmdirc/commandparser/parsers/GlobalCommandParser.java
  75. 0
    2
      src/com/dmdirc/config/ConfigManager.java
  76. 0
    2
      src/com/dmdirc/config/ConfigSource.java
  77. 0
    2
      src/com/dmdirc/config/ConfigTarget.java
  78. 7
    9
      src/com/dmdirc/config/Identity.java
  79. 0
    1
      src/com/dmdirc/config/IdentityListener.java
  80. 0
    2
      src/com/dmdirc/config/IdentityManager.java
  81. 0
    2
      src/com/dmdirc/config/InvalidIdentityFileException.java
  82. 0
    2
      src/com/dmdirc/config/prefs/CategoryChangeListener.java
  83. 5
    7
      src/com/dmdirc/config/prefs/PreferencesCategory.java
  84. 2
    2
      src/com/dmdirc/config/prefs/PreferencesSetting.java
  85. 1
    1
      src/com/dmdirc/config/validators/URLProtocolValidator.java
  86. 0
    2
      src/com/dmdirc/interfaces/ActionListener.java
  87. 0
    2
      src/com/dmdirc/interfaces/AwayStateListener.java
  88. 0
    2
      src/com/dmdirc/interfaces/ConfigChangeListener.java
  89. 1
    2
      src/com/dmdirc/interfaces/FrameCloseListener.java
  90. 1
    1
      src/com/dmdirc/interfaces/FrameInfoListener.java
  91. 1
    3
      src/com/dmdirc/interfaces/InviteListener.java
  92. 1
    3
      src/com/dmdirc/interfaces/NotificationListener.java
  93. 1
    1
      src/com/dmdirc/interfaces/SelectionListener.java
  94. 0
    1
      src/com/dmdirc/logger/ErrorReportingThread.java
  95. 1
    5
      src/com/dmdirc/logger/NullOutputStream.java
  96. 2
    2
      src/com/dmdirc/plugins/BasePlugin.java
  97. 0
    2
      src/com/dmdirc/plugins/NoSuchProviderException.java
  98. 10
    10
      src/com/dmdirc/plugins/PluginInfo.java
  99. 3
    6
      src/com/dmdirc/plugins/PluginManager.java
  100. 0
    0
      src/com/dmdirc/ui/CoreUIUtils.java

+ 0
- 2
src/com/dmdirc/ChannelClientProperty.java Parādīt failu

@@ -24,8 +24,6 @@ package com.dmdirc;
24 24
 
25 25
 /**
26 26
  * Represents the properties that can be set on a channel client.
27
- *
28
- * @author chris
29 27
  */
30 28
 public enum ChannelClientProperty {
31 29
 

+ 0
- 2
src/com/dmdirc/EventHandler.java Parādīt failu

@@ -31,8 +31,6 @@ import com.dmdirc.parser.interfaces.callbacks.CallbackInterface;
31 31
 
32 32
 /**
33 33
  * Abstracts some behaviour used by Event Handlers.
34
- *
35
- * @author chris
36 34
  */
37 35
 public abstract class EventHandler implements CallbackInterface {
38 36
 

+ 0
- 2
src/com/dmdirc/GlobalWindow.java Parādīt failu

@@ -38,8 +38,6 @@ import java.util.Arrays;
38 38
 
39 39
 /**
40 40
  * A window which can be used to execute global commands.
41
- *
42
- * @author chris
43 41
  */
44 42
 public class GlobalWindow extends WritableFrameContainer {
45 43
 

+ 0
- 2
src/com/dmdirc/Invite.java Parādīt failu

@@ -26,8 +26,6 @@ import java.util.Date;
26 26
 
27 27
 /**
28 28
  * Model for a channel invitation.
29
- *
30
- * @author Chris
31 29
  */
32 30
 public class Invite {
33 31
 

+ 0
- 2
src/com/dmdirc/MessageEncoder.java Parādīt failu

@@ -32,8 +32,6 @@ import java.io.UnsupportedEncodingException;
32 32
 /**
33 33
  * An {@link Encoder} implementation that reads the desired encoding from
34 34
  * the relevant target's config file.
35
- *
36
- * @author chris
37 35
  */
38 36
 public class MessageEncoder implements Encoder {
39 37
 

+ 1
- 1
src/com/dmdirc/Raw.java Parādīt failu

@@ -33,8 +33,8 @@ import com.dmdirc.ui.WindowManager;
33 33
 import com.dmdirc.ui.core.components.WindowComponent;
34 34
 import com.dmdirc.ui.input.TabCompleter;
35 35
 import com.dmdirc.ui.interfaces.InputWindow;
36
-import java.util.Arrays;
37 36
 
37
+import java.util.Arrays;
38 38
 import java.util.Date;
39 39
 
40 40
 /**

+ 2
- 2
src/com/dmdirc/ServerEventHandler.java Parādīt failu

@@ -432,8 +432,8 @@ public final class ServerEventHandler extends EventHandler implements
432 432
                 && owner.getState() != ServerState.CONNECTING
433 433
                 && owner.getState() != ServerState.DISCONNECTING) {
434 434
             throw new IllegalArgumentException("Event called from a parser (#"
435
-                    + owner.getStatus().getParserID(parser) + ") that " +
436
-                    "shouldn't be in use.\nState history:\n"
435
+                    + owner.getStatus().getParserID(parser) + ") that "
436
+                    + "shouldn't be in use.\nState history:\n"
437 437
                     + owner.getStatus().getTransitionHistory());
438 438
         }
439 439
     }

+ 1
- 3
src/com/dmdirc/actions/Action.java Parādīt failu

@@ -45,8 +45,6 @@ import java.util.Map;
45 45
 
46 46
 /**
47 47
  * Describes a single action.
48
- *
49
- * @author chris
50 48
  */
51 49
 public class Action extends ActionModel implements ConfigChangeListener {
52 50
 
@@ -174,7 +172,7 @@ public class Action extends ActionModel implements ConfigChangeListener {
174 172
             response = new String[config.getFlatDomain(DOMAIN_RESPONSE).size()];
175 173
 
176 174
             int i = 0;
177
-            for (String line: config.getFlatDomain(DOMAIN_RESPONSE)) {
175
+            for (String line : config.getFlatDomain(DOMAIN_RESPONSE)) {
178 176
                 response[i++] = line;
179 177
             }
180 178
         } else {

+ 0
- 1
src/com/dmdirc/actions/ActionCondition.java Parādīt failu

@@ -27,7 +27,6 @@ import com.dmdirc.actions.interfaces.ActionComponent;
27 27
 
28 28
 /**
29 29
  * An action condition represents one condition within an action.
30
- * @author chris
31 30
  */
32 31
 public class ActionCondition {
33 32
 

+ 3
- 5
src/com/dmdirc/actions/ActionGroup.java Parādīt failu

@@ -35,8 +35,6 @@ import java.util.Map;
35 35
 
36 36
 /**
37 37
  * Represents a group of actions, along with their meta-data.
38
- *
39
- * @author chris
40 38
  */
41 39
 public class ActionGroup implements Iterable<Action> {
42 40
 
@@ -54,16 +52,16 @@ public class ActionGroup implements Iterable<Action> {
54 52
     private final String name;
55 53
 
56 54
     /** The description of this action group. */
57
-    private String description = null;
55
+    private String description;
58 56
 
59 57
     /** The author of this action group. */
60
-    private String author = null;
58
+    private String author;
61 59
 
62 60
     /** The component number of this action group (for updating). */
63 61
     private int component = -1;
64 62
 
65 63
     /** The version of this action group. */
66
-    private Version version = null;
64
+    private Version version;
67 65
 
68 66
     /** A list of settings used by this action group. */
69 67
     private final Map<String, PreferencesSetting> settings

+ 1
- 1
src/com/dmdirc/actions/ActionManager.java Parādīt failu

@@ -232,7 +232,7 @@ public final class ActionManager {
232 232
         for (ActionType type : newTypes) {
233 233
             Logger.assertTrue(type != null);
234 234
 
235
-            if(!types.contains(type)) {
235
+            if (!types.contains(type)) {
236 236
                 types.add(type);
237 237
                 typeGroups.add(type.getType().getGroup(), type);
238 238
             }

+ 0
- 2
src/com/dmdirc/actions/ActionSubstitutor.java Parādīt failu

@@ -42,8 +42,6 @@ import java.util.regex.Pattern;
42 42
 
43 43
 /**
44 44
  * Handles the substitution of variables into action targets and responses.
45
- *
46
- * @author Chris
47 45
  */
48 46
 public class ActionSubstitutor {
49 47
 

+ 0
- 2
src/com/dmdirc/actions/ActionTypeComparator.java Parādīt failu

@@ -29,8 +29,6 @@ import java.util.Comparator;
29 29
 
30 30
 /**
31 31
  * Implements a comparator for action types that compares their names.
32
- *
33
- * @author Chris
34 32
  */
35 33
 public final class ActionTypeComparator implements Comparator<ActionType>, Serializable {
36 34
 

+ 0
- 2
src/com/dmdirc/actions/ConditionTree.java Parādīt failu

@@ -28,8 +28,6 @@ import java.util.Deque;
28 28
 /**
29 29
  * A condition tree specifies in which order a group of conditions will be
30 30
  * executed.
31
- *
32
- * @author chris
33 31
  */
34 32
 public class ConditionTree {
35 33
 

+ 19
- 21
src/com/dmdirc/actions/ConditionTreeFactory.java Parādīt failu

@@ -27,7 +27,6 @@ package com.dmdirc.actions;
27 27
  * number of arguments.
28 28
  *
29 29
  * @since 0.6
30
- * @author chris
31 30
  */
32 31
 public abstract class ConditionTreeFactory {
33 32
 
@@ -58,6 +57,25 @@ public abstract class ConditionTreeFactory {
58 57
         CUSTOM,
59 58
     }
60 59
 
60
+    /**
61
+     * Retrieves a factory that will extrapolate the specified
62
+     * {@link ConditionTree} for different number of arguments, if applicable.
63
+     *
64
+     * @param tree The {@link ConditionTree} that's in use
65
+     * @param args The number of conditions currently in use
66
+     * @return A {@link ConditionTreeFactory} that will create relevant
67
+     * {@link ConditionTree}s
68
+     */
69
+    public static ConditionTreeFactory getFactory(final ConditionTree tree, final int args) {
70
+        if (tree.equals(ConditionTree.createConjunction(args))) {
71
+            return new ConjunctionFactory();
72
+        } else if (tree.equals(ConditionTree.createDisjunction(args))) {
73
+            return new DisjunctionFactory();
74
+        } else {
75
+            return new CustomFactory(tree);
76
+        }
77
+    }
78
+
61 79
     /**
62 80
      * Creates condition trees where the arguments are conjoined together.
63 81
      */
@@ -126,24 +144,4 @@ public abstract class ConditionTreeFactory {
126 144
         }
127 145
 
128 146
     }
129
-
130
-    /**
131
-     * Retrieves a factory that will extrapolate the specified
132
-     * {@link ConditionTree} for different number of arguments, if applicable.
133
-     *
134
-     * @param tree The {@link ConditionTree} that's in use
135
-     * @param args The number of conditions currently in use
136
-     * @return A {@link ConditionTreeFactory} that will create relevant
137
-     * {@link ConditionTree}s
138
-     */
139
-    public static ConditionTreeFactory getFactory(final ConditionTree tree, final int args) {
140
-        if (tree.equals(ConditionTree.createConjunction(args))) {
141
-            return new ConjunctionFactory();
142
-        } else if (tree.equals(ConditionTree.createDisjunction(args))) {
143
-            return new DisjunctionFactory();
144
-        } else {
145
-            return new CustomFactory(tree);
146
-        }
147
-    }
148
-
149 147
 }

+ 0
- 1
src/com/dmdirc/actions/CoreActionComparison.java Parādīt failu

@@ -31,7 +31,6 @@ import java.util.regex.PatternSyntaxException;
31 31
 /**
32 32
  * A CoreActionComparison represents a possible comparison between two types of
33 33
  * data used in an action condition.
34
- * @author chris
35 34
  */
36 35
 public enum CoreActionComparison implements ActionComparison {
37 36
 

+ 6
- 6
src/com/dmdirc/actions/CoreActionComponent.java Parādīt failu

@@ -45,7 +45,6 @@ import javax.swing.KeyStroke;
45 45
 /**
46 46
  * A CoreActionComponent represents a component of some object that the user can
47 47
  * use as the subject of a condition within an action.
48
- * @author chris
49 48
  */
50 49
 public enum CoreActionComponent implements ActionComponent {
51 50
 
@@ -69,7 +68,7 @@ public enum CoreActionComponent implements ActionComponent {
69 68
     SERVER_NETWORK {
70 69
         /** {@inheritDoc} */
71 70
         @Override
72
-        @ComponentOptions(requireConnected=true)
71
+        @ComponentOptions(requireConnected = true)
73 72
         public Object get(final Object argument) { return ((Server) argument).getNetwork(); }
74 73
         /** {@inheritDoc} */
75 74
         @Override
@@ -122,7 +121,7 @@ public enum CoreActionComponent implements ActionComponent {
122 121
     SERVER_CHANNELUMODES {
123 122
         /** {@inheritDoc} */
124 123
         @Override
125
-        @ComponentOptions(requireConnected=true)
124
+        @ComponentOptions(requireConnected = true)
126 125
         public Object get(final Object argument) { return ((Server) argument).getParser().getChannelUserModes(); }
127 126
         /** {@inheritDoc} */
128 127
         @Override
@@ -139,15 +138,16 @@ public enum CoreActionComponent implements ActionComponent {
139 138
     SERVER_MYNICKNAME {
140 139
         /** {@inheritDoc} */
141 140
         @Override
142
-        @ComponentOptions(requireConnected=true)
141
+        @ComponentOptions(requireConnected = true)
143 142
         public Object get(final Object argument) {
144 143
             final Server server = (Server) argument;
145 144
 
146 145
             if (server == null || server.getParser() == null) {
147 146
                 Logger.appError(ErrorLevel.LOW, "SERVER_MYNICKNAME.get() called with null element",
148 147
                         new UnsupportedOperationException(
149
-                        server == null ? "Server was null" :
150
-                            server.getParser() == null ? "Parser was null" : "Unknown"
148
+                        server == null ? "Server was null"
149
+                            : server.getParser() == null ? "Parser was null"
150
+                            : "Unknown"
151 151
                         ));
152 152
 
153 153
                 return "null";

+ 0
- 1
src/com/dmdirc/actions/CoreActionType.java Parādīt failu

@@ -34,7 +34,6 @@ import com.dmdirc.actions.metatypes.ServerEvents;
34 34
 
35 35
 /**
36 36
  * An enumeration of actions that are raised by the core.
37
- * @author chris
38 37
  */
39 38
 public enum CoreActionType implements ActionType {
40 39
 

+ 0
- 1
src/com/dmdirc/actions/interfaces/ActionComparison.java Parādīt failu

@@ -26,7 +26,6 @@ package com.dmdirc.actions.interfaces;
26 26
  * Describes the methods that must be implemented by an action comparison.
27 27
  * Action comparisons allow the user to compare an action component to a
28 28
  * string they entered.
29
- * @author chris
30 29
  */
31 30
 public interface ActionComparison {
32 31
 

+ 0
- 2
src/com/dmdirc/actions/interfaces/ActionComponent.java Parādīt failu

@@ -31,8 +31,6 @@ import java.lang.annotation.Target;
31 31
  * The ActionComponent interface describes the methods that action components
32 32
  * are required to implement. Components are objects that allow the user to
33 33
  * pull a specific piece of information from a certain type of argument.
34
- *
35
- * @author chris
36 34
  */
37 35
 public interface ActionComponent {
38 36
 

+ 0
- 1
src/com/dmdirc/actions/interfaces/ActionMetaType.java Parādīt failu

@@ -24,7 +24,6 @@ package com.dmdirc.actions.interfaces;
24 24
 
25 25
 /**
26 26
  * Encapsulates the methods that all action types are required to implement.
27
- * @author chris
28 27
  */
29 28
 public interface ActionMetaType {
30 29
 

+ 0
- 1
src/com/dmdirc/actions/interfaces/ActionType.java Parādīt failu

@@ -24,7 +24,6 @@ package com.dmdirc.actions.interfaces;
24 24
 
25 25
 /**
26 26
  * Encapsulates the methods that all actions are required to implement.
27
- * @author chris
28 27
  */
29 28
 public interface ActionType {
30 29
 

+ 0
- 2
src/com/dmdirc/actions/metatypes/ChannelEvents.java Parādīt failu

@@ -29,8 +29,6 @@ import com.dmdirc.parser.interfaces.ChannelClientInfo;
29 29
 
30 30
 /**
31 31
  * Defines channel-related events.
32
- *
33
- * @author Chris
34 32
  */
35 33
 public enum ChannelEvents implements ActionMetaType {
36 34
 

+ 0
- 2
src/com/dmdirc/actions/metatypes/ClientEvents.java Parādīt failu

@@ -35,8 +35,6 @@ import javax.swing.text.StyledDocument;
35 35
 
36 36
 /**
37 37
  * Defines client-wide events.
38
- *
39
- * @author Chris
40 38
  */
41 39
 public enum ClientEvents implements ActionMetaType {
42 40
 

+ 0
- 2
src/com/dmdirc/actions/metatypes/LinkEvents.java Parādīt failu

@@ -27,8 +27,6 @@ import com.dmdirc.ui.interfaces.Window;
27 27
 
28 28
 /**
29 29
  * Defines link-related events.
30
- *
31
- * @author Chris
32 30
  */
33 31
 public enum LinkEvents implements ActionMetaType {
34 32
 

+ 1
- 1
src/com/dmdirc/actions/validators/ConditionRuleValidator.java Parādīt failu

@@ -32,7 +32,7 @@ import com.dmdirc.util.validators.Validator;
32 32
 public class ConditionRuleValidator implements Validator<String> {
33 33
 
34 34
     /** The number of arguments to the tree. */
35
-    private int args = 0;
35
+    private int args;
36 36
 
37 37
     /**
38 38
      * Creates a new ConditionRuleValidator.

+ 0
- 2
src/com/dmdirc/actions/wrappers/AliasWrapper.java Parādīt failu

@@ -39,8 +39,6 @@ import java.util.List;
39 39
 
40 40
 /**
41 41
  * Encapsulates alias actions.
42
- *
43
- * @author chris
44 42
  */
45 43
 public final class AliasWrapper extends ActionGroup {
46 44
 

+ 108
- 108
src/com/dmdirc/actions/wrappers/PerformWrapper.java Parādīt failu

@@ -43,114 +43,6 @@ import java.util.List;
43 43
  */
44 44
 public class PerformWrapper extends ActionGroup {
45 45
 
46
-    /**
47
-     * Describes one specific perform.
48
-     *
49
-     * @since 0.6.4
50
-     */
51
-    public static class PerformDescription {
52
-
53
-        /** The type of the perform being described. */
54
-        private final PerformType type;
55
-        /** The target of the perform. */
56
-        private final String target;
57
-        /** The profile (if any) of the perform. */
58
-        private final String profile;
59
-
60
-        /**
61
-         * Creates a new perform description with the specified arguments.
62
-         *
63
-         * @param type The type of the perform in question
64
-         * @param target The target of the perform
65
-         * @param profile The profile of the perform (or null)
66
-         */
67
-        public PerformDescription(final PerformType type, final String target,
68
-                final String profile) {
69
-            this.type = type;
70
-            this.target = target;
71
-            this.profile = profile;
72
-
73
-            if (target == null) {
74
-                throw new NullPointerException("Target may not be null");
75
-            }
76
-        }
77
-
78
-        /**
79
-         * Creates a new perform description with the specified arguments.
80
-         *
81
-         * @param type The type of the perform in question
82
-         * @param target The target of the perform
83
-         */
84
-        public PerformDescription(final PerformType type, final String target) {
85
-            this.type = type;
86
-            this.target = target;
87
-            this.profile = null;
88
-
89
-            if (target == null) {
90
-                throw new NullPointerException("Target may not be null");
91
-            }
92
-        }
93
-
94
-        /**
95
-         * Retrieves the profile of this perform.
96
-         *
97
-         * @return This perform's profile
98
-         */
99
-        public String getProfile() {
100
-            return profile;
101
-        }
102
-
103
-        /**
104
-         * Retrieves the target of this perform.
105
-         *
106
-         * @return This perform's target
107
-         */
108
-        public String getTarget() {
109
-            return target;
110
-        }
111
-
112
-        /**
113
-         * Retrieves the type of this perform.
114
-         *
115
-         * @return This perform's type
116
-         */
117
-        public PerformType getType() {
118
-            return type;
119
-        }
120
-
121
-        /** {@inheritDoc} */
122
-        @Override
123
-        public boolean equals(final Object obj) {
124
-            if (obj == null || getClass() != obj.getClass()) {
125
-                return false;
126
-            }
127
-
128
-            final PerformDescription other = (PerformDescription) obj;
129
-
130
-            if (this.type != other.type || !this.target.equals(other.target)) {
131
-                return false;
132
-            }
133
-
134
-            if ((this.profile == null) ? (other.profile != null)
135
-                    : !this.profile.equals(other.profile)) {
136
-                return false;
137
-            }
138
-
139
-            return true;
140
-        }
141
-
142
-        /** {@inheritDoc} */
143
-        @Override
144
-        public int hashCode() {
145
-            int hash = 7;
146
-            hash = 89 * hash + (this.type != null ? this.type.hashCode() : 0);
147
-            hash = 89 * hash + (this.target != null ? this.target.hashCode() : 0);
148
-            hash = 89 * hash + (this.profile != null ? this.profile.hashCode() : 0);
149
-            return hash;
150
-        }
151
-
152
-    }
153
-
154 46
     /** A singleton instance of the Perform Wrapper. */
155 47
     private static final PerformWrapper ME = new PerformWrapper();
156 48
 
@@ -396,4 +288,112 @@ public class PerformWrapper extends ActionGroup {
396 288
                 + "the Settings menu.";
397 289
     }
398 290
 
291
+    /**
292
+     * Describes one specific perform.
293
+     *
294
+     * @since 0.6.4
295
+     */
296
+    public static class PerformDescription {
297
+
298
+        /** The type of the perform being described. */
299
+        private final PerformType type;
300
+        /** The target of the perform. */
301
+        private final String target;
302
+        /** The profile (if any) of the perform. */
303
+        private final String profile;
304
+
305
+        /**
306
+         * Creates a new perform description with the specified arguments.
307
+         *
308
+         * @param type The type of the perform in question
309
+         * @param target The target of the perform
310
+         * @param profile The profile of the perform (or null)
311
+         */
312
+        public PerformDescription(final PerformType type, final String target,
313
+                final String profile) {
314
+            this.type = type;
315
+            this.target = target;
316
+            this.profile = profile;
317
+
318
+            if (target == null) {
319
+                throw new NullPointerException("Target may not be null");
320
+            }
321
+        }
322
+
323
+        /**
324
+         * Creates a new perform description with the specified arguments.
325
+         *
326
+         * @param type The type of the perform in question
327
+         * @param target The target of the perform
328
+         */
329
+        public PerformDescription(final PerformType type, final String target) {
330
+            this.type = type;
331
+            this.target = target;
332
+            this.profile = null;
333
+
334
+            if (target == null) {
335
+                throw new NullPointerException("Target may not be null");
336
+            }
337
+        }
338
+
339
+        /**
340
+         * Retrieves the profile of this perform.
341
+         *
342
+         * @return This perform's profile
343
+         */
344
+        public String getProfile() {
345
+            return profile;
346
+        }
347
+
348
+        /**
349
+         * Retrieves the target of this perform.
350
+         *
351
+         * @return This perform's target
352
+         */
353
+        public String getTarget() {
354
+            return target;
355
+        }
356
+
357
+        /**
358
+         * Retrieves the type of this perform.
359
+         *
360
+         * @return This perform's type
361
+         */
362
+        public PerformType getType() {
363
+            return type;
364
+        }
365
+
366
+        /** {@inheritDoc} */
367
+        @Override
368
+        public boolean equals(final Object obj) {
369
+            if (obj == null || getClass() != obj.getClass()) {
370
+                return false;
371
+            }
372
+
373
+            final PerformDescription other = (PerformDescription) obj;
374
+
375
+            if (this.type != other.type || !this.target.equals(other.target)) {
376
+                return false;
377
+            }
378
+
379
+            if ((this.profile == null) ? (other.profile != null)
380
+                    : !this.profile.equals(other.profile)) {
381
+                return false;
382
+            }
383
+
384
+            return true;
385
+        }
386
+
387
+        /** {@inheritDoc} */
388
+        @Override
389
+        public int hashCode() {
390
+            int hash = 7;
391
+            hash = 89 * hash + (this.type != null ? this.type.hashCode() : 0);
392
+            hash = 89 * hash + (this.target != null ? this.target.hashCode() : 0);
393
+            hash = 89 * hash + (this.profile != null ? this.profile.hashCode() : 0);
394
+            return hash;
395
+        }
396
+
397
+    }
398
+
399 399
 }

+ 0
- 2
src/com/dmdirc/commandline/CommandLineParser.java Parādīt failu

@@ -40,8 +40,6 @@ import java.util.List;
40 40
 
41 41
 /**
42 42
  * Parses command line arguments for the client.
43
- *
44
- * @author Chris
45 43
  */
46 44
 public class CommandLineParser {
47 45
 

+ 0
- 1
src/com/dmdirc/commandparser/CommandArguments.java Parādīt failu

@@ -37,7 +37,6 @@ import java.util.regex.Pattern;
37 37
  * the command name.
38 38
  *
39 39
  * @since 0.6.3m1
40
- * @author chris
41 40
  */
42 41
 public class CommandArguments {
43 42
 

+ 0
- 2
src/com/dmdirc/commandparser/CommandInfo.java Parādīt failu

@@ -24,8 +24,6 @@ package com.dmdirc.commandparser;
24 24
 
25 25
 /**
26 26
  * Describes a command.
27
- *
28
- * @author chris
29 27
  */
30 28
 public interface CommandInfo {
31 29
 

+ 0
- 1
src/com/dmdirc/commandparser/CommandInfoPair.java Parādīt failu

@@ -29,7 +29,6 @@ import com.dmdirc.commandparser.commands.Command;
29 29
  * triggered it.
30 30
  *
31 31
  * @since 0.6.4
32
- * @author chris
33 32
  */
34 33
 public class CommandInfoPair {
35 34
 

+ 0
- 2
src/com/dmdirc/commandparser/CommandManager.java Parādīt failu

@@ -46,8 +46,6 @@ import java.util.Map;
46 46
 /**
47 47
  * The command manager creates and manages a single instance of all commands,
48 48
  * and provides methods to load each group of commands into a parser instance.
49
- *
50
- * @author chris
51 49
  */
52 50
 public final class CommandManager {
53 51
 

+ 0
- 2
src/com/dmdirc/commandparser/CommandType.java Parādīt failu

@@ -24,8 +24,6 @@ package com.dmdirc.commandparser;
24 24
 
25 25
 /**
26 26
  * Defines the possible targets for commands.
27
- *
28
- * @author chris
29 27
  */
30 28
 public enum CommandType {
31 29
 

+ 2
- 4
src/com/dmdirc/commandparser/PopupMenuItem.java Parādīt failu

@@ -24,15 +24,13 @@ package com.dmdirc.commandparser;
24 24
 
25 25
 /**
26 26
  * Represents an abstract, UI-independent popup menu item.
27
- *
28
- * @author chris
29 27
  */
30 28
 public class PopupMenuItem {
31 29
 
32 30
     /** Whether this item is a divider. */
33
-    private boolean divider = false;
31
+    private boolean divider;
34 32
     /** The submenu for this item, if any. */
35
-    private PopupMenu submenu = null;
33
+    private PopupMenu submenu;
36 34
     /** The name of this item, if any. */
37 35
     private String name;
38 36
     /** The command for this item, if any. */

+ 0
- 2
src/com/dmdirc/commandparser/commands/Command.java Parādīt failu

@@ -30,8 +30,6 @@ import com.dmdirc.ui.messages.Styliser;
30 30
 
31 31
 /**
32 32
  * Represents a generic command.
33
- *
34
- * @author chris
35 33
  */
36 34
 public abstract class Command {
37 35
 

+ 0
- 1
src/com/dmdirc/commandparser/commands/CommandOptions.java Parādīt failu

@@ -31,7 +31,6 @@ import java.lang.annotation.Target;
31 31
  * Allows commands to define options that affect their behaviour.
32 32
  *
33 33
  * @since 0.6.3m1
34
- * @author chris
35 34
  */
36 35
 @Retention(RetentionPolicy.RUNTIME)
37 36
 @Target(ElementType.TYPE)

+ 0
- 2
src/com/dmdirc/commandparser/commands/ExternalCommand.java Parādīt failu

@@ -28,8 +28,6 @@ import com.dmdirc.commandparser.CommandArguments;
28 28
 /**
29 29
  * An external command is a channel command that can be executed from outside
30 30
  * of the channel.
31
- *
32
- * @author chris
33 31
  */
34 32
 public interface ExternalCommand {
35 33
 

+ 11
- 13
src/com/dmdirc/commandparser/commands/IntelligentCommand.java Parādīt failu

@@ -30,10 +30,20 @@ import java.util.List;
30 30
 /**
31 31
  * Intelligent commands implement a method that provides a list of possible
32 32
  * options for them, for use (for example) by table completers.
33
- * @author chris
34 33
  */
35 34
 public interface IntelligentCommand {
36 35
 
36
+    /**
37
+     * Returns a list of suggestions for the specified argument, given the
38
+     * specified context.
39
+     *
40
+     * @param arg The argument that is being completed
41
+     * @param context The context in which suggestions are being sought
42
+     * @return A list of suggestions for the argument
43
+     * @since 0.6.4
44
+     */
45
+    AdditionalTabTargets getSuggestions(int arg, IntelligentCommandContext context);
46
+
37 47
     /**
38 48
      * Describes the context of an intelligent tab completion request.
39 49
      *
@@ -91,16 +101,4 @@ public interface IntelligentCommand {
91 101
             return partial;
92 102
         }
93 103
     }
94
-
95
-    /**
96
-     * Returns a list of suggestions for the specified argument, given the
97
-     * specified context.
98
-     *
99
-     * @param arg The argument that is being completed
100
-     * @param context The context in which suggestions are being sought
101
-     * @return A list of suggestions for the argument
102
-     * @since 0.6.4
103
-     */
104
-    AdditionalTabTargets getSuggestions(int arg, IntelligentCommandContext context);
105
-
106 104
 }

+ 0
- 2
src/com/dmdirc/commandparser/commands/channel/Ban.java Parādīt failu

@@ -37,8 +37,6 @@ import com.dmdirc.ui.input.TabCompletionType;
37 37
 
38 38
 /**
39 39
  * The kick command bans a specified user or host from the channel.
40
- *
41
- * @author chris
42 40
  */
43 41
 public final class Ban extends Command implements IntelligentCommand, CommandInfo {
44 42
 

+ 1
- 2
src/com/dmdirc/commandparser/commands/channel/ChannelSettings.java Parādīt failu

@@ -35,9 +35,8 @@ import com.dmdirc.ui.input.AdditionalTabTargets;
35 35
 
36 36
 /**
37 37
  * Opens the channel settings window for the channel.
38
- * @author chris
39 38
  */
40
-@CommandOptions(allowOffline=false)
39
+@CommandOptions(allowOffline = false)
41 40
 public final class ChannelSettings extends Command implements
42 41
         IntelligentCommand, CommandInfo {
43 42
 

+ 1
- 3
src/com/dmdirc/commandparser/commands/channel/Cycle.java Parādīt failu

@@ -34,10 +34,8 @@ import com.dmdirc.commandparser.commands.context.CommandContext;
34 34
 
35 35
 /**
36 36
  * The cycle command allows users to rapidly part and rejoin a channel.
37
- *
38
- * @author chris
39 37
  */
40
-@CommandOptions(allowOffline=false)
38
+@CommandOptions(allowOffline = false)
41 39
 public final class Cycle extends Command implements CommandInfo {
42 40
 
43 41
     /** Creates a new instance of Cycle. */

+ 1
- 2
src/com/dmdirc/commandparser/commands/channel/Invite.java Parādīt failu

@@ -39,9 +39,8 @@ import com.dmdirc.parser.interfaces.ChannelInfo;
39 39
  * The invite command allows the user to invite others to a channel.
40 40
  *
41 41
  * @since 0.6.4
42
- * @author chris
43 42
  */
44
-@CommandOptions(allowOffline=false)
43
+@CommandOptions(allowOffline = false)
45 44
 public final class Invite extends Command implements ExternalCommand, CommandInfo {
46 45
 
47 46
     /** Creates a new instance of Invite. */

+ 1
- 2
src/com/dmdirc/commandparser/commands/channel/KickReason.java Parādīt failu

@@ -39,9 +39,8 @@ import com.dmdirc.ui.input.TabCompletionType;
39 39
 /**
40 40
  * The kick command kicks a specified user from the channel.
41 41
  * This version allows the user to specify a reason.
42
- * @author chris
43 42
  */
44
-@CommandOptions(allowOffline=false)
43
+@CommandOptions(allowOffline = false)
45 44
 public final class KickReason extends Command implements IntelligentCommand,
46 45
         CommandInfo {
47 46
 

+ 1
- 7
src/com/dmdirc/commandparser/commands/channel/Mode.java Parādīt failu

@@ -40,17 +40,11 @@ import com.dmdirc.ui.input.TabCompletionType;
40 40
 
41 41
 /**
42 42
  * The mode command allows the user to inspect and change channel modes.
43
- * @author chris
44 43
  */
45
-@CommandOptions(allowOffline=false)
44
+@CommandOptions(allowOffline = false)
46 45
 public final class Mode extends Command implements IntelligentCommand,
47 46
         ExternalCommand, CommandInfo {
48 47
 
49
-    /** Creates a new instance of Mode. */
50
-    public Mode() {
51
-        super();
52
-    }
53
-
54 48
     /** {@inheritDoc} */
55 49
     @Override
56 50
     public void execute(final FrameContainer origin,

+ 1
- 10
src/com/dmdirc/commandparser/commands/channel/Names.java Parādīt failu

@@ -38,20 +38,11 @@ import com.dmdirc.ui.input.AdditionalTabTargets;
38 38
 
39 39
 /**
40 40
  * Sends a names request.
41
- *
42
- * @author chris
43 41
  */
44
-@CommandOptions(allowOffline=false)
42
+@CommandOptions(allowOffline = false)
45 43
 public class Names extends Command implements IntelligentCommand,
46 44
         ExternalCommand, CommandInfo {
47 45
 
48
-    /**
49
-     * Creates a new instance of Names.
50
-     */
51
-    public Names() {
52
-        super();
53
-    }
54
-
55 46
     /** {@inheritDoc} */
56 47
     @Override
57 48
     public void execute(final FrameContainer origin,

+ 0
- 1
src/com/dmdirc/commandparser/commands/context/ChannelCommandContext.java Parādīt failu

@@ -30,7 +30,6 @@ import com.dmdirc.ui.interfaces.Window;
30 30
  * A specialised {@link CommandContext} for commands executed in channels.
31 31
  *
32 32
  * @since 0.6.4
33
- * @author chris
34 33
  */
35 34
 public class ChannelCommandContext extends ChatCommandContext {
36 35
 

+ 0
- 1
src/com/dmdirc/commandparser/commands/context/CommandContext.java Parādīt failu

@@ -29,7 +29,6 @@ import com.dmdirc.ui.interfaces.Window;
29 29
  * Provides information relating to the context that a command was executed in.
30 30
  *
31 31
  * @since 0.6.4
32
- * @author chris
33 32
  */
34 33
 public class CommandContext {
35 34
 

+ 2
- 2
src/com/dmdirc/commandparser/commands/flags/CommandFlagResult.java Parādīt failu

@@ -70,8 +70,8 @@ public class CommandFlagResult {
70 70
      */
71 71
     public String getArgumentsAsString(final CommandFlag flag) {
72 72
         return flag == null ? (offsets.get(flag) > arguments.getArguments().length
73
-                ? "" : arguments.getArgumentsAsString(offsets.get(flag))) :
74
-                arguments.getArgumentsAsString(offsets.get(flag),
73
+                ? "" : arguments.getArgumentsAsString(offsets.get(flag)))
74
+                : arguments.getArgumentsAsString(offsets.get(flag),
75 75
                 offsets.get(flag) + flag.getDelayedArgs() + flag.getImmediateArgs() - 1);
76 76
     }
77 77
 

+ 0
- 1
src/com/dmdirc/commandparser/commands/global/Active.java Parādīt failu

@@ -36,7 +36,6 @@ import com.dmdirc.ui.input.TabCompleter;
36 36
 
37 37
 /**
38 38
  * The Active command issues a command to the active window.
39
- * @author chris
40 39
  */
41 40
 public final class Active extends Command implements IntelligentCommand,
42 41
         CommandInfo {

+ 0
- 2
src/com/dmdirc/commandparser/commands/global/AliasCommand.java Parādīt failu

@@ -39,8 +39,6 @@ import com.dmdirc.ui.input.TabCompleter;
39 39
 
40 40
 /**
41 41
  * The alias command allows users to create aliases on-the-fly.
42
- *
43
- * @author chris
44 42
  */
45 43
 public final class AliasCommand extends Command implements
46 44
         IntelligentCommand, CommandInfo {

+ 0
- 1
src/com/dmdirc/commandparser/commands/global/AllServers.java Parādīt failu

@@ -36,7 +36,6 @@ import com.dmdirc.ui.input.TabCompleter;
36 36
 
37 37
 /**
38 38
  * The AllServers command allows users to issue commands to all servers.
39
- * @author chris
40 39
  */
41 40
 public final class AllServers extends Command implements IntelligentCommand,
42 41
         CommandInfo{

+ 0
- 2
src/com/dmdirc/commandparser/commands/global/Clear.java Parādīt failu

@@ -33,8 +33,6 @@ import com.dmdirc.ui.input.AdditionalTabTargets;
33 33
 
34 34
 /**
35 35
  * The clear command clears the main text area of the current window.
36
- *
37
- * @author chris
38 36
  */
39 37
 public final class Clear extends Command implements IntelligentCommand,
40 38
         CommandInfo {

+ 0
- 2
src/com/dmdirc/commandparser/commands/global/Echo.java Parādīt failu

@@ -43,8 +43,6 @@ import java.util.List;
43 43
 
44 44
 /**
45 45
  * The echo commands simply echos text to the current window.
46
- *
47
- * @author chris
48 46
  */
49 47
 public final class Echo extends Command implements IntelligentCommand,
50 48
         CommandInfo {

+ 0
- 1
src/com/dmdirc/commandparser/commands/global/Exit.java Parādīt failu

@@ -34,7 +34,6 @@ import com.dmdirc.commandparser.commands.context.CommandContext;
34 34
  * The exit command allows the user to quit DMDirc with a custom quit message.
35 35
  * When the client quits, it disconnects all servers (with the quit message
36 36
  * supplied) and saves the config file.
37
- * @author chris
38 37
  */
39 38
 public final class Exit extends Command implements CommandInfo {
40 39
 

+ 0
- 8
src/com/dmdirc/commandparser/commands/global/Help.java Parādīt failu

@@ -44,17 +44,9 @@ import java.util.Map;
44 44
  * The help command shows the user a list of available commands, along with
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
- * @author chris
48 47
  */
49 48
 public final class Help extends Command implements IntelligentCommand, CommandInfo {
50 49
 
51
-    /**
52
-     * Creates a new instance of Help.
53
-     */
54
-    public Help() {
55
-        super();
56
-    }
57
-
58 50
     /** {@inheritDoc} */
59 51
     @Override
60 52
     public void execute(final FrameContainer origin,

+ 0
- 9
src/com/dmdirc/commandparser/commands/global/Ifplugin.java Parādīt failu

@@ -39,19 +39,10 @@ import com.dmdirc.ui.input.TabCompleter;
39 39
 /**
40 40
  * The if plugin command allows the user to execute commands based on whether
41 41
  * or not a plugin is loaded.
42
- *
43
- * @author chris
44 42
  */
45 43
 public final class Ifplugin extends Command implements IntelligentCommand,
46 44
         CommandInfo {
47 45
 
48
-    /**
49
-     * Creates a new instance of Ifplugin.
50
-     */
51
-    public Ifplugin() {
52
-        super();
53
-    }
54
-
55 46
     /** {@inheritDoc} */
56 47
     @Override
57 48
     public void execute(final FrameContainer origin,

+ 0
- 8
src/com/dmdirc/commandparser/commands/global/Input.java Parādīt failu

@@ -36,18 +36,10 @@ import com.dmdirc.ui.interfaces.InputWindow;
36 36
 /**
37 37
  * The input command allows you to maniplulate text in a windows inputField.
38 38
  *
39
- * @author Simon
40 39
  * @since 0.6.4
41 40
  */
42 41
 public class Input extends Command implements IntelligentCommand, CommandInfo {
43 42
 
44
-    /**
45
-     * Creates a new instance of Input.
46
-     */
47
-    public Input() {
48
-        super();
49
-    }
50
-
51 43
     /** {@inheritDoc} */
52 44
     @Override
53 45
     public void execute(final FrameContainer origin,

+ 0
- 9
src/com/dmdirc/commandparser/commands/global/NewServer.java Parādīt failu

@@ -44,19 +44,10 @@ import java.util.regex.Pattern;
44 44
 
45 45
 /**
46 46
  * The new server command allows users to open a new server window.
47
- *
48
- * @author chris
49 47
  */
50 48
 public final class NewServer extends Command implements IntelligentCommand,
51 49
         CommandInfo {
52 50
 
53
-    /**
54
-     * Creates a new instance of NewServer.
55
-     */
56
-    public NewServer() {
57
-        super();
58
-    }
59
-
60 51
     /** {@inheritDoc} */
61 52
     @Override
62 53
     public void execute(final FrameContainer origin,

+ 0
- 1
src/com/dmdirc/commandparser/commands/server/AllChannels.java Parādīt failu

@@ -37,7 +37,6 @@ import com.dmdirc.ui.input.TabCompleter;
37 37
 /**
38 38
  * The AllChannels command allows the user to issue a command to all channels
39 39
  * on a server.
40
- * @author chris
41 40
  */
42 41
 public final class AllChannels extends Command implements IntelligentCommand,
43 42
         CommandInfo {

+ 1
- 2
src/com/dmdirc/commandparser/commands/server/Away.java Parādīt failu

@@ -34,9 +34,8 @@ import com.dmdirc.commandparser.commands.context.ServerCommandContext;
34 34
 
35 35
 /**
36 36
  * The away command allows the user to set their away message.
37
- * @author chris
38 37
  */
39
-@CommandOptions(allowOffline=false)
38
+@CommandOptions(allowOffline = false)
40 39
 public final class Away extends Command implements CommandInfo {
41 40
 
42 41
     /**

+ 1
- 2
src/com/dmdirc/commandparser/commands/server/Back.java Parādīt failu

@@ -36,9 +36,8 @@ import com.dmdirc.ui.input.AdditionalTabTargets;
36 36
 
37 37
 /**
38 38
  * The back command allows the user to unset their away status.
39
- * @author chris
40 39
  */
41
-@CommandOptions(allowOffline=false)
40
+@CommandOptions(allowOffline = false)
42 41
 public final class Back extends Command implements IntelligentCommand, CommandInfo {
43 42
 
44 43
     /**

+ 0
- 2
src/com/dmdirc/commandparser/commands/server/ChangeServer.java Parādīt failu

@@ -37,8 +37,6 @@ import java.net.URISyntaxException;
37 37
 
38 38
 /**
39 39
  * The /server command allows the user to connect to a new server.
40
- *
41
- * @author chris
42 40
  */
43 41
 public final class ChangeServer extends Command implements CommandInfo {
44 42
 

+ 1
- 9
src/com/dmdirc/commandparser/commands/server/Ctcp.java Parādīt failu

@@ -37,19 +37,11 @@ import com.dmdirc.ui.input.TabCompletionType;
37 37
 
38 38
 /**
39 39
  * Allows the user to send CTCP messages.
40
- * @author chris
41 40
  */
42
-@CommandOptions(allowOffline=false)
41
+@CommandOptions(allowOffline = false)
43 42
 public final class Ctcp extends Command implements IntelligentCommand,
44 43
         CommandInfo {
45 44
 
46
-    /**
47
-     * Creates a new instance of Ctcp.
48
-     */
49
-    public Ctcp() {
50
-        super();
51
-    }
52
-
53 45
     /** {@inheritDoc} */
54 46
     @Override
55 47
     public void execute(final FrameContainer origin,

+ 0
- 8
src/com/dmdirc/commandparser/commands/server/Disconnect.java Parādīt failu

@@ -33,17 +33,9 @@ import com.dmdirc.commandparser.commands.context.ServerCommandContext;
33 33
 
34 34
 /**
35 35
  * The disconnect command disconnects from the current server.
36
- * @author chris
37 36
  */
38 37
 public final class Disconnect extends Command implements CommandInfo {
39 38
 
40
-    /**
41
-     * Creates a new instance of Disconnect.
42
-     */
43
-    public Disconnect() {
44
-        super();
45
-    }
46
-
47 39
     /** {@inheritDoc} */
48 40
     @Override
49 41
     public void execute(final FrameContainer origin,

+ 0
- 8
src/com/dmdirc/commandparser/commands/server/Ignore.java Parādīt failu

@@ -41,18 +41,10 @@ import java.util.regex.PatternSyntaxException;
41 41
 
42 42
 /**
43 43
  * Allows the user to add/view/delete ignores.
44
- * @author chris
45 44
  */
46 45
 public final class Ignore extends Command implements IntelligentCommand,
47 46
         CommandInfo {
48 47
 
49
-    /**
50
-     * Creates a new instance of Ignore.
51
-     */
52
-    public Ignore() {
53
-        super();
54
-    }
55
-
56 48
     /** {@inheritDoc} */
57 49
     @Override
58 50
     public void execute(final FrameContainer origin,

+ 0
- 1
src/com/dmdirc/commandparser/commands/server/JoinChannelCommand.java Parādīt failu

@@ -47,7 +47,6 @@ import java.util.List;
47 47
  * Allows the user to join channels.
48 48
  *
49 49
  * @since 0.6.3m1
50
- * @author chris
51 50
  */
52 51
 public class JoinChannelCommand extends Command implements
53 52
         ActionListener, IntelligentCommand, CommandInfo {

+ 1
- 9
src/com/dmdirc/commandparser/commands/server/Message.java Parādīt failu

@@ -40,19 +40,11 @@ import com.dmdirc.ui.interfaces.InputWindow;
40 40
 
41 41
 /**
42 42
  * Allows the user to send privmsgs.
43
- * @author chris
44 43
  */
45
-@CommandOptions(allowOffline=false)
44
+@CommandOptions(allowOffline = false)
46 45
 public final class Message extends Command implements IntelligentCommand,
47 46
         WrappableCommand, CommandInfo {
48 47
 
49
-    /**
50
-     * Creates a new instance of Message.
51
-     */
52
-    public Message() {
53
-        super();
54
-    }
55
-
56 48
     /** {@inheritDoc} */
57 49
     @Override
58 50
     public void execute(final FrameContainer origin,

+ 1
- 9
src/com/dmdirc/commandparser/commands/server/Nick.java Parādīt failu

@@ -37,19 +37,11 @@ import com.dmdirc.ui.input.TabCompletionType;
37 37
 
38 38
 /**
39 39
  * Allows the user to change nickname.
40
- * @author chris
41 40
  */
42
-@CommandOptions(allowOffline=false)
41
+@CommandOptions(allowOffline = false)
43 42
 public final class Nick extends Command implements IntelligentCommand,
44 43
         CommandInfo {
45 44
 
46
-    /**
47
-     * Creates a new instance of Nick.
48
-     */
49
-    public Nick() {
50
-        super();
51
-    }
52
-
53 45
     /** {@inheritDoc} */
54 46
     @Override
55 47
     public void execute(final FrameContainer origin,

+ 1
- 9
src/com/dmdirc/commandparser/commands/server/Notice.java Parādīt failu

@@ -37,19 +37,11 @@ import com.dmdirc.ui.input.TabCompletionType;
37 37
 
38 38
 /**
39 39
  * Allows the user to send notices.
40
- * @author chris
41 40
  */
42
-@CommandOptions(allowOffline=false)
41
+@CommandOptions(allowOffline = false)
43 42
 public final class Notice extends Command implements IntelligentCommand,
44 43
         CommandInfo {
45 44
 
46
-    /**
47
-     * Creates a new instance of Notice.
48
-     */
49
-    public Notice() {
50
-        super();
51
-    }
52
-
53 45
     /** {@inheritDoc} */
54 46
     @Override
55 47
     public void execute(final FrameContainer origin,

+ 0
- 2
src/com/dmdirc/commandparser/parsers/ChannelCommandParser.java Parādīt failu

@@ -35,8 +35,6 @@ import com.dmdirc.ui.interfaces.Window;
35 35
 
36 36
 /**
37 37
  * A command parser that is tailored for use in a channel environment.
38
- *
39
- * @author chris
40 38
  */
41 39
 public class ChannelCommandParser extends ChatCommandParser {
42 40
 

+ 0
- 1
src/com/dmdirc/commandparser/parsers/ChatCommandParser.java Parādīt failu

@@ -37,7 +37,6 @@ import com.dmdirc.ui.interfaces.Window;
37 37
  * (queries and channels).
38 38
  *
39 39
  * @since 0.6.4
40
- * @author chris
41 40
  */
42 41
 public class ChatCommandParser extends ServerCommandParser {
43 42
 

+ 1
- 4
src/com/dmdirc/commandparser/parsers/CommandParser.java Parādīt failu

@@ -41,15 +41,12 @@ import com.dmdirc.util.RollingList;
41 41
 
42 42
 import java.io.Serializable;
43 43
 import java.util.HashMap;
44
-import java.util.Hashtable;
45 44
 import java.util.Map;
46 45
 
47 46
 /**
48 47
  * Represents a generic command parser. A command parser takes a line of input
49 48
  * from the user, determines if it is an attempt at executing a command (based
50 49
  * on the character at the start of the string), and handles it appropriately.
51
- *
52
- * @author chris
53 50
  */
54 51
 public abstract class CommandParser implements Serializable {
55 52
 
@@ -72,7 +69,7 @@ public abstract class CommandParser implements Serializable {
72 69
 
73 70
     /** Creates a new instance of CommandParser. */
74 71
     protected CommandParser() {
75
-        commands = new Hashtable<String, CommandInfoPair>();
72
+        commands = new HashMap<String, CommandInfoPair>();
76 73
         history = new RollingList<PreviousCommand>(
77 74
                 IdentityManager.getGlobalConfig().getOptionInt("general",
78 75
                     "commandhistory"));

+ 0
- 1
src/com/dmdirc/commandparser/parsers/GlobalCommandParser.java Parādīt failu

@@ -35,7 +35,6 @@ import com.dmdirc.ui.interfaces.Window;
35 35
 
36 36
 /**
37 37
  * The command parser used for global commands.
38
- * @author chris
39 38
  */
40 39
 public class GlobalCommandParser extends CommandParser {
41 40
 

+ 0
- 2
src/com/dmdirc/config/ConfigManager.java Parādīt failu

@@ -38,8 +38,6 @@ import java.util.logging.Level;
38 38
 
39 39
 /**
40 40
  * The config manager manages the various config sources for each entity.
41
- *
42
- * @author chris
43 41
  */
44 42
 public class ConfigManager extends ConfigSource implements ConfigChangeListener,
45 43
         IdentityListener {

+ 0
- 2
src/com/dmdirc/config/ConfigSource.java Parādīt failu

@@ -51,8 +51,6 @@ import java.util.List;
51 51
  * have a value. Note that for this sort of behaviour to make sense, it requires
52 52
  * an implementation that takes values from multiple sources, such as a
53 53
  * {@link ConfigManager}.
54
- *
55
- * @author chris
56 54
  */
57 55
 public abstract class ConfigSource {
58 56
 

+ 0
- 2
src/com/dmdirc/config/ConfigTarget.java Parādīt failu

@@ -28,8 +28,6 @@ import java.io.Serializable;
28 28
  * Represents the target of a particular config source.
29 29
  * <p>
30 30
  * Note: this class has a natural ordering that is inconsistent with equals.
31
- *
32
- * @author chris
33 31
  */
34 32
 public class ConfigTarget implements Comparable<ConfigTarget>, Serializable {
35 33
 

+ 7
- 9
src/com/dmdirc/config/Identity.java Parādīt failu

@@ -49,20 +49,18 @@ import java.util.logging.Level;
49 49
  * cases, or the user may manually apply them.
50 50
  * <p>
51 51
  * Note: this class has a natural ordering that is inconsistent with equals.
52
- *
53
- * @author chris
54 52
  */
55 53
 public class Identity extends ConfigSource implements Comparable<Identity> {
56 54
 
55
+    /** A regular expression that will match all characters illegal in file names. */
56
+    protected static final String ILLEGAL_CHARS = "[\\\\\"/:\\*\\?\"<>\\|]";
57
+
57 58
     /** The domain used for identity settings. */
58 59
     private static final String DOMAIN = "identity".intern();
59 60
 
60 61
     /** The domain used for profile settings. */
61 62
     private static final String PROFILE_DOMAIN = "profile".intern();
62 63
 
63
-    /** A regular expression that will match all characters illegal in file names. */
64
-    protected static final String ILLEGAL_CHARS = "[\\\\\"/:\\*\\?\"<>\\|]";
65
-
66 64
     /** A logger for this class. */
67 65
     private static final java.util.logging.Logger LOGGER = java.util.logging
68 66
             .Logger.getLogger(Identity.class.getName());
@@ -518,13 +516,13 @@ public class Identity extends ConfigSource implements Comparable<Identity> {
518 516
                         : file.getKeyDomains().entrySet()) {
519 517
                     final String domain = entry.getKey();
520 518
 
521
-                    for (Map.Entry<String, String> subentry :
522
-                        new HashSet<Map.Entry<String, String>>(entry.getValue().entrySet())) {
519
+                    for (Map.Entry<String, String> subentry
520
+                        : new HashSet<Map.Entry<String, String>>(entry.getValue().entrySet())) {
523 521
                         final String key = subentry.getKey();
524 522
                         final String value = subentry.getValue();
525 523
 
526
-                        if (globalConfig.hasOptionString(domain, key) &&
527
-                                globalConfig.getOption(domain, key).equals(value)) {
524
+                        if (globalConfig.hasOptionString(domain, key)
525
+                                && globalConfig.getOption(domain, key).equals(value)) {
528 526
                             LOGGER.log(Level.FINEST,
529 527
                                     "{0}: found superfluous setting: {1}.{2} (= {3})",
530 528
                                     new Object[]{getName(), domain, key, value});

+ 0
- 1
src/com/dmdirc/config/IdentityListener.java Parādīt failu

@@ -27,7 +27,6 @@ package com.dmdirc.config;
27 27
  * and removed from the {@link IdentityManager}.
28 28
  *
29 29
  * @since 0.6.4
30
- * @author chris
31 30
  */
32 31
 public interface IdentityListener {
33 32
 

+ 0
- 2
src/com/dmdirc/config/IdentityManager.java Parādīt failu

@@ -47,8 +47,6 @@ import java.util.logging.Level;
47 47
 /**
48 48
  * The identity manager manages all known identities, providing easy methods
49 49
  * to access them.
50
- *
51
- * @author chris
52 50
  */
53 51
 public final class IdentityManager {
54 52
 

+ 0
- 2
src/com/dmdirc/config/InvalidIdentityFileException.java Parādīt failu

@@ -25,8 +25,6 @@ package com.dmdirc.config;
25 25
 /**
26 26
  * Thrown when an identity file is read that does not contain the required
27 27
  * fields.
28
- *
29
- * @author chris
30 28
  */
31 29
 public class InvalidIdentityFileException extends Exception {
32 30
 

+ 0
- 2
src/com/dmdirc/config/prefs/CategoryChangeListener.java Parādīt failu

@@ -24,8 +24,6 @@ package com.dmdirc.config.prefs;
24 24
 /**
25 25
  * Defines methods that should be implemented by objects who wish to be
26 26
  * notified about category changes.
27
- *
28
- * @author chris
29 27
  */
30 28
 public interface CategoryChangeListener {
31 29
 

+ 5
- 7
src/com/dmdirc/config/prefs/PreferencesCategory.java Parādīt failu

@@ -31,8 +31,6 @@ import java.util.List;
31 31
  * Represents one category of preferences. Categories can contain 0 or more
32 32
  * subcategories, and either 0 or more PreferencesSettings or exactly 1
33 33
  * PreferencesInterface object.
34
- *
35
- * @author chris
36 34
  */
37 35
 public class PreferencesCategory {
38 36
 
@@ -53,7 +51,7 @@ public class PreferencesCategory {
53 51
     private String warning;
54 52
 
55 53
     /** Whether or not this category is inline. */
56
-    private boolean isInline = false;
54
+    private boolean isInline;
57 55
 
58 56
     /** Whether or not to show inline categories before settings. */
59 57
     private boolean inlineBefore = true;
@@ -172,8 +170,8 @@ public class PreferencesCategory {
172 170
      */
173 171
     public void addSetting(final PreferencesSetting setting) {
174 172
         if (hasObject()) {
175
-            throw new IllegalArgumentException("Can't add settings to a " +
176
-                    "category that uses a replacement object");
173
+            throw new IllegalArgumentException("Can't add settings to a "
174
+                    + "category that uses a replacement object");
177 175
         }
178 176
 
179 177
         settings.add(setting);
@@ -186,8 +184,8 @@ public class PreferencesCategory {
186 184
      */
187 185
     public void addSubCategory(final PreferencesCategory subcategory) {
188 186
         if (isInline() && !subcategory.isInline()) {
189
-            throw new IllegalArgumentException("Can't add non-inline " +
190
-                    "subcategories to inline ones");
187
+            throw new IllegalArgumentException("Can't add non-inline "
188
+                    + "subcategories to inline ones");
191 189
         }
192 190
 
193 191
         subcategory.setParent(this);

+ 2
- 2
src/com/dmdirc/config/prefs/PreferencesSetting.java Parādīt failu

@@ -54,10 +54,10 @@ public class PreferencesSetting {
54 54
     protected final String helptext;
55 55
     /** The current value of the setting. */
56 56
     protected String current;
57
-    /** The original value of this vsetting. */
58
-    private String original;
59 57
     /** Whether or not we need a restart. */
60 58
     protected boolean restartNeeded;
59
+    /** The original value of this vsetting. */
60
+    private String original;
61 61
     /** A list of change listeners. */
62 62
     private final List<SettingChangeListener> listeners
63 63
             = new ArrayList<SettingChangeListener>();

+ 1
- 1
src/com/dmdirc/config/validators/URLProtocolValidator.java Parādīt failu

@@ -22,9 +22,9 @@
22 22
 
23 23
 package com.dmdirc.config.validators;
24 24
 
25
+import com.dmdirc.config.IdentityManager;
25 26
 import com.dmdirc.util.validators.ValidationResponse;
26 27
 import com.dmdirc.util.validators.Validator;
27
-import com.dmdirc.config.IdentityManager;
28 28
 
29 29
 /**
30 30
  * Validates URLProtocols.

+ 0
- 2
src/com/dmdirc/interfaces/ActionListener.java Parādīt failu

@@ -27,8 +27,6 @@ import com.dmdirc.actions.interfaces.ActionType;
27 27
 /**
28 28
  * Defines the method that has to be implemented by classes wanting to receive
29 29
  * action events.
30
- *
31
- * @author chris
32 30
  */
33 31
 public interface ActionListener {
34 32
 

+ 0
- 2
src/com/dmdirc/interfaces/AwayStateListener.java Parādīt failu

@@ -24,8 +24,6 @@ package com.dmdirc.interfaces;
24 24
 
25 25
 /**
26 26
  * AwayStateListeners are informed of changes to our away state.
27
- *
28
- * @author chris
29 27
  */
30 28
 public interface AwayStateListener {
31 29
 

+ 0
- 2
src/com/dmdirc/interfaces/ConfigChangeListener.java Parādīt failu

@@ -24,8 +24,6 @@ package com.dmdirc.interfaces;
24 24
 
25 25
 /**
26 26
  * Defines the method required for config change listeners.
27
-
28
- * @author Chris
29 27
  */
30 28
 public interface ConfigChangeListener {
31 29
 

+ 1
- 2
src/com/dmdirc/interfaces/FrameCloseListener.java Parādīt failu

@@ -29,7 +29,6 @@ import com.dmdirc.FrameContainer;
29 29
  * frame closing lifecycle of a {@link FrameContainer}.
30 30
  *
31 31
  * @since 0.6.5
32
- * @author chris
33 32
  */
34 33
 public interface FrameCloseListener {
35 34
 
@@ -41,4 +40,4 @@ public interface FrameCloseListener {
41 40
      */
42 41
     void windowClosing(final FrameContainer window);
43 42
 
44
-}
43
+}

+ 1
- 1
src/com/dmdirc/interfaces/FrameInfoListener.java Parādīt failu

@@ -58,4 +58,4 @@ public interface FrameInfoListener extends EventListener {
58 58
      */
59 59
     void titleChanged(final FrameContainer window, final String title);
60 60
 
61
-}
61
+}

+ 1
- 3
src/com/dmdirc/interfaces/InviteListener.java Parādīt failu

@@ -30,8 +30,6 @@ import java.util.EventListener;
30 30
 /**
31 31
  * Defines the methods that should be implemented by classes which wish to
32 32
  * receive information about invites.
33
- *
34
- * @author Chris
35 33
  */
36 34
 public interface InviteListener extends EventListener {
37 35
 
@@ -50,4 +48,4 @@ public interface InviteListener extends EventListener {
50 48
      * @param invite The invite that has expired
51 49
      */
52 50
     void inviteExpired(final Server server, final Invite invite);
53
-}
51
+}

+ 1
- 3
src/com/dmdirc/interfaces/NotificationListener.java Parādīt failu

@@ -30,8 +30,6 @@ import java.util.EventListener;
30 30
 /**
31 31
  * Defines the methods that should be implemented by classes which wish to
32 32
  * receive information about notification changes.
33
- *
34
- * @author Chris
35 33
  */
36 34
 public interface NotificationListener extends EventListener {
37 35
 
@@ -49,4 +47,4 @@ public interface NotificationListener extends EventListener {
49 47
      * @param window The window whose notification has been cleared
50 48
      */
51 49
     void notificationCleared(final FrameContainer window);
52
-}
50
+}

+ 1
- 1
src/com/dmdirc/interfaces/SelectionListener.java Parādīt failu

@@ -39,4 +39,4 @@ public interface SelectionListener extends EventListener {
39 39
      */
40 40
     void selectionChanged(final FrameContainer window);
41 41
 
42
-}
42
+}

+ 0
- 1
src/com/dmdirc/logger/ErrorReportingThread.java Parādīt failu

@@ -28,7 +28,6 @@ import java.util.concurrent.BlockingQueue;
28 28
  * Daemon thread which reports errors.
29 29
  *
30 30
  * @since 0.6.3m1
31
- * @author chris
32 31
  */
33 32
 public class ErrorReportingThread extends Thread {
34 33
 

+ 1
- 5
src/com/dmdirc/logger/NullOutputStream.java Parādīt failu

@@ -30,12 +30,8 @@ import java.io.OutputStream;
30 30
  */
31 31
 public class NullOutputStream extends OutputStream {
32 32
 
33
-    /** Instantiates a new null output stream. */
34
-    public NullOutputStream() {
35
-        super();
36
-    }
37
-
38 33
     /** {@inheritDoc} */
34
+    @Override
39 35
     public void write(final int b) throws IOException {
40 36
         //Ignore data.
41 37
     }

+ 2
- 2
src/com/dmdirc/plugins/BasePlugin.java Parādīt failu

@@ -35,11 +35,11 @@ public abstract class BasePlugin implements Plugin {
35 35
     /** Domain name for the settings in this plugin. */
36 36
     private String myDomain = "plugin-unknown";
37 37
     /** Has the domain been set? */
38
-    private boolean domainSet = false;
38
+    private boolean domainSet;
39 39
     /** Associated Plugin info. */
40 40
     private PluginInfo pluginInfo;
41 41
     /** Files directory for this plugin. */
42
-    private File filesDir = null;
42
+    private File filesDir;
43 43
 
44 44
     /** {@inheritDoc} */
45 45
     @Override

+ 0
- 2
src/com/dmdirc/plugins/NoSuchProviderException.java Parādīt failu

@@ -24,8 +24,6 @@ package com.dmdirc.plugins;
24 24
 
25 25
 /**
26 26
  * Plugin Exception.
27
- *
28
- * @author            Shane Mc Cormack
29 27
  */
30 28
 public class NoSuchProviderException extends RuntimeException {
31 29
 

+ 10
- 10
src/com/dmdirc/plugins/PluginInfo.java Parādīt failu

@@ -58,19 +58,19 @@ public class PluginInfo implements Comparable<PluginInfo>, ServiceProvider {
58 58
     private static final java.util.logging.Logger LOGGER
59 59
             = java.util.logging.Logger.getLogger(PluginInfo.class.getName());
60 60
     /** Plugin Meta Data */
61
-    private volatile ConfigFile metaData = null;
61
+    private volatile ConfigFile metaData;
62 62
     /** URL that this plugin was loaded from */
63 63
     private final URL url;
64 64
     /** Filename for this plugin (taken from URL) */
65 65
     private final String filename;
66 66
     /** The actual Plugin from this jar */
67
-    private Plugin plugin = null;
67
+    private Plugin plugin;
68 68
     /** The classloader used for this Plugin */
69
-    private PluginClassLoader classloader = null;
69
+    private PluginClassLoader classloader;
70 70
     /** The resource manager used by this pluginInfo */
71
-    private ResourceManager myResourceManager = null;
71
+    private ResourceManager myResourceManager;
72 72
     /** Is this plugin only loaded temporarily? */
73
-    private boolean tempLoaded = false;
73
+    private boolean tempLoaded;
74 74
     /** List of classes this plugin has */
75 75
     private final List<String> myClasses = new ArrayList<String>();
76 76
     /** Requirements error message. */
@@ -78,7 +78,7 @@ public class PluginInfo implements Comparable<PluginInfo>, ServiceProvider {
78 78
     /** Last Error Message. */
79 79
     private String lastError = "No Error";
80 80
     /** Are we trying to load? */
81
-    private boolean isLoading = false;
81
+    private boolean isLoading;
82 82
     /** List of services we provide. */
83 83
     private final List<Service> provides = new ArrayList<Service>();
84 84
     /** List of children of this plugin. */
@@ -671,10 +671,10 @@ public class PluginInfo implements Comparable<PluginInfo>, ServiceProvider {
671 671
             return true;
672 672
         }
673 673
 
674
-        if (!checkOS(getKeyValue("requires", "os", ""), System.getProperty("os.name"), System.getProperty("os.version"), System.getProperty("os.arch")) ||
675
-                !checkFiles(getKeyValue("requires", "files", "")) ||
676
-                (!preliminary && !checkPlugins(getKeyValue("requires", "plugins", ""))) ||
677
-                (!preliminary && !checkServices(metaData.getFlatDomain("required-services")))) {
674
+        if (!checkOS(getKeyValue("requires", "os", ""), System.getProperty("os.name"), System.getProperty("os.version"), System.getProperty("os.arch"))
675
+                || !checkFiles(getKeyValue("requires", "files", ""))
676
+                || (!preliminary && !checkPlugins(getKeyValue("requires", "plugins", "")))
677
+                || (!preliminary && !checkServices(metaData.getFlatDomain("required-services")))) {
678 678
             return false;
679 679
         }
680 680
 

+ 3
- 6
src/com/dmdirc/plugins/PluginManager.java Parādīt failu

@@ -46,21 +46,18 @@ import java.util.Map;
46 46
 
47 47
 /**
48 48
  * Searches for and manages plugins and services.
49
- *
50
- * @author shane
51
- * @author chris
52 49
  */
53 50
 public class PluginManager implements ActionListener {
54 51
 
52
+    /** Singleton instance of the plugin manager. */
53
+    private static PluginManager me;
54
+
55 55
     /** List of known plugins' file names to their corresponding {@link PluginInfo} objects. */
56 56
     private final Map<String, PluginInfo> knownPlugins = new HashMap<String, PluginInfo>();
57 57
 
58 58
     /** Directory where plugins are stored. */
59 59
     private final String myDir;
60 60
 
61
-    /** Singleton instance of the plugin manager. */
62
-    private static PluginManager me;
63
-
64 61
     /** Map of services. */
65 62
     private final Map<String, Map<String, Service>> services = new HashMap<String, Map<String, Service>>();
66 63
 

+ 0
- 0
src/com/dmdirc/ui/CoreUIUtils.java Parādīt failu


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels

Notiek ielāde…
Atcelt
Saglabāt