Преглед на файлове

Bulk remove inheritDoc.

Change-Id: I06a0f4ced5eb0c8281e52a38b37a27779c5d571b
Reviewed-on: http://gerrit.dmdirc.com/3273
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
pull/1/head
Chris Smith преди 10 години
родител
ревизия
01fa9b6453
променени са 100 файла, в които са добавени 972 реда и са изтрити 1462 реда
  1. 1
    9
      src/com/dmdirc/Channel.java
  2. 0
    19
      src/com/dmdirc/ChannelEventHandler.java
  3. 1
    1
      src/com/dmdirc/CorePluginExtractor.java
  4. 0
    1
      src/com/dmdirc/CustomWindow.java
  5. 0
    1
      src/com/dmdirc/FrameContainer.java
  6. 2
    6
      src/com/dmdirc/GlobalWindow.java
  7. 2
    2
      src/com/dmdirc/Main.java
  8. 0
    1
      src/com/dmdirc/MessageEncoder.java
  9. 2
    13
      src/com/dmdirc/Query.java
  10. 2
    9
      src/com/dmdirc/Raw.java
  11. 2
    70
      src/com/dmdirc/Server.java
  12. 2
    36
      src/com/dmdirc/ServerEventHandler.java
  13. 2
    3
      src/com/dmdirc/ServerManager.java
  14. 19
    20
      src/com/dmdirc/ServerState.java
  15. 0
    4
      src/com/dmdirc/SystemLifecycleController.java
  16. 0
    1
      src/com/dmdirc/Topic.java
  17. 3
    11
      src/com/dmdirc/actions/Action.java
  18. 0
    6
      src/com/dmdirc/actions/ActionComponentChain.java
  19. 0
    3
      src/com/dmdirc/actions/ActionCondition.java
  20. 0
    1
      src/com/dmdirc/actions/ActionGroup.java
  21. 0
    26
      src/com/dmdirc/actions/ActionManager.java
  22. 0
    1
      src/com/dmdirc/actions/ActionModel.java
  23. 1
    2
      src/com/dmdirc/actions/ActionSubstitutor.java
  24. 0
    1
      src/com/dmdirc/actions/ActionTypeComparator.java
  25. 0
    8
      src/com/dmdirc/actions/ColourActionComparison.java
  26. 0
    2
      src/com/dmdirc/actions/ConditionTree.java
  27. 0
    6
      src/com/dmdirc/actions/ConditionTreeFactory.java
  28. 178
    197
      src/com/dmdirc/actions/CoreActionComparison.java
  29. 699
    788
      src/com/dmdirc/actions/CoreActionComponent.java
  30. 0
    2
      src/com/dmdirc/actions/CoreActionType.java
  31. 0
    1
      src/com/dmdirc/actions/internal/WhoisNumericFormatter.java
  32. 0
    4
      src/com/dmdirc/actions/metatypes/ActionEvents.java
  33. 5
    9
      src/com/dmdirc/actions/metatypes/ChannelEvents.java
  34. 5
    9
      src/com/dmdirc/actions/metatypes/ClientEvents.java
  35. 0
    4
      src/com/dmdirc/actions/metatypes/LinkEvents.java
  36. 0
    4
      src/com/dmdirc/actions/metatypes/PluginEvents.java
  37. 1
    5
      src/com/dmdirc/actions/metatypes/QueryEvents.java
  38. 6
    10
      src/com/dmdirc/actions/metatypes/ServerEvents.java
  39. 20
    13
      src/com/dmdirc/actions/package-info.java
  40. 0
    1
      src/com/dmdirc/actions/validators/ActionNameValidator.java
  41. 0
    1
      src/com/dmdirc/actions/validators/ConditionRuleValidator.java
  42. 0
    4
      src/com/dmdirc/actions/wrappers/AliasWrapper.java
  43. 0
    1
      src/com/dmdirc/actions/wrappers/PerformType.java
  44. 2
    9
      src/com/dmdirc/actions/wrappers/PerformWrapper.java
  45. 0
    1
      src/com/dmdirc/commandline/RemoteServer.java
  46. 5
    7
      src/com/dmdirc/commandparser/CommandInfo.java
  47. 0
    8
      src/com/dmdirc/commandparser/CommandManager.java
  48. 1
    3
      src/com/dmdirc/commandparser/CommandType.java
  49. 0
    2
      src/com/dmdirc/commandparser/commands/channel/Ban.java
  50. 0
    1
      src/com/dmdirc/commandparser/commands/channel/Cycle.java
  51. 0
    2
      src/com/dmdirc/commandparser/commands/channel/Invite.java
  52. 0
    2
      src/com/dmdirc/commandparser/commands/channel/KickReason.java
  53. 0
    3
      src/com/dmdirc/commandparser/commands/channel/Mode.java
  54. 0
    3
      src/com/dmdirc/commandparser/commands/channel/Names.java
  55. 0
    1
      src/com/dmdirc/commandparser/commands/channel/Part.java
  56. 0
    2
      src/com/dmdirc/commandparser/commands/channel/SetNickColour.java
  57. 0
    2
      src/com/dmdirc/commandparser/commands/channel/ShowTopic.java
  58. 0
    2
      src/com/dmdirc/commandparser/commands/chat/Me.java
  59. 1
    2
      src/com/dmdirc/commandparser/commands/flags/CommandFlagHandler.java
  60. 1
    1
      src/com/dmdirc/commandparser/commands/flags/CommandFlagResult.java
  61. 0
    2
      src/com/dmdirc/commandparser/commands/global/AliasCommand.java
  62. 0
    2
      src/com/dmdirc/commandparser/commands/global/AllServers.java
  63. 0
    2
      src/com/dmdirc/commandparser/commands/global/Clear.java
  64. 0
    2
      src/com/dmdirc/commandparser/commands/global/Echo.java
  65. 0
    1
      src/com/dmdirc/commandparser/commands/global/Exit.java
  66. 0
    2
      src/com/dmdirc/commandparser/commands/global/Help.java
  67. 0
    2
      src/com/dmdirc/commandparser/commands/global/Ifplugin.java
  68. 0
    2
      src/com/dmdirc/commandparser/commands/global/LoadPlugin.java
  69. 0
    2
      src/com/dmdirc/commandparser/commands/global/NewServer.java
  70. 0
    2
      src/com/dmdirc/commandparser/commands/global/Notify.java
  71. 0
    2
      src/com/dmdirc/commandparser/commands/global/OpenWindow.java
  72. 0
    2
      src/com/dmdirc/commandparser/commands/global/ReloadActions.java
  73. 0
    2
      src/com/dmdirc/commandparser/commands/global/ReloadIdentities.java
  74. 0
    2
      src/com/dmdirc/commandparser/commands/global/ReloadPlugin.java
  75. 0
    2
      src/com/dmdirc/commandparser/commands/global/SaveConfig.java
  76. 0
    2
      src/com/dmdirc/commandparser/commands/global/SetCommand.java
  77. 0
    2
      src/com/dmdirc/commandparser/commands/global/UnloadPlugin.java
  78. 0
    2
      src/com/dmdirc/commandparser/commands/server/AllChannels.java
  79. 0
    1
      src/com/dmdirc/commandparser/commands/server/Away.java
  80. 0
    2
      src/com/dmdirc/commandparser/commands/server/Back.java
  81. 0
    1
      src/com/dmdirc/commandparser/commands/server/ChangeServer.java
  82. 0
    2
      src/com/dmdirc/commandparser/commands/server/Ctcp.java
  83. 0
    1
      src/com/dmdirc/commandparser/commands/server/Disconnect.java
  84. 0
    2
      src/com/dmdirc/commandparser/commands/server/Ignore.java
  85. 0
    3
      src/com/dmdirc/commandparser/commands/server/JoinChannelCommand.java
  86. 0
    3
      src/com/dmdirc/commandparser/commands/server/Message.java
  87. 0
    2
      src/com/dmdirc/commandparser/commands/server/Nick.java
  88. 0
    2
      src/com/dmdirc/commandparser/commands/server/Notice.java
  89. 0
    3
      src/com/dmdirc/commandparser/commands/server/OpenQuery.java
  90. 0
    1
      src/com/dmdirc/commandparser/commands/server/Raw.java
  91. 0
    4
      src/com/dmdirc/commandparser/commands/server/RawServerCommand.java
  92. 0
    1
      src/com/dmdirc/commandparser/commands/server/Reconnect.java
  93. 0
    1
      src/com/dmdirc/commandparser/commands/server/Umode.java
  94. 0
    2
      src/com/dmdirc/commandparser/parsers/ChannelCommandParser.java
  95. 0
    2
      src/com/dmdirc/commandparser/parsers/ChatCommandParser.java
  96. 0
    1
      src/com/dmdirc/commandparser/parsers/GlobalCommandParser.java
  97. 0
    1
      src/com/dmdirc/commandparser/parsers/QueryCommandParser.java
  98. 0
    1
      src/com/dmdirc/commandparser/parsers/ServerCommandParser.java
  99. 9
    24
      src/com/dmdirc/config/BaseConfigProvider.java
  100. 0
    0
      src/com/dmdirc/config/CipherUtils.java

+ 1
- 9
src/com/dmdirc/Channel.java Целия файл

@@ -186,7 +186,6 @@ public class Channel extends MessageTarget implements ConfigChangeListener {
186 186
                 server.getNetwork(), server.getAddress(), channelInfo.getName());
187 187
     }
188 188
 
189
-    /** {@inheritDoc} */
190 189
     @Override
191 190
     public void sendLine(final String line) {
192 191
         if (server.getState() != ServerState.CONNECTED
@@ -214,7 +213,6 @@ public class Channel extends MessageTarget implements ConfigChangeListener {
214 213
         }
215 214
     }
216 215
 
217
-    /** {@inheritDoc} */
218 216
     @Override
219 217
     public int getMaxLineLength() {
220 218
         return server.getState() == ServerState.CONNECTED
@@ -222,7 +220,6 @@ public class Channel extends MessageTarget implements ConfigChangeListener {
222 220
                 : -1;
223 221
     }
224 222
 
225
-    /** {@inheritDoc} */
226 223
     @Override
227 224
     public void sendAction(final String action) {
228 225
         if (server.getState() != ServerState.CONNECTED
@@ -331,7 +328,6 @@ public class Channel extends MessageTarget implements ConfigChangeListener {
331 328
                 .clientListUpdated(Collections.<ChannelClientInfo>emptyList());
332 329
     }
333 330
 
334
-    /** {@inheritDoc} */
335 331
     @Override
336 332
     public void close() {
337 333
         super.close();
@@ -447,7 +443,6 @@ public class Channel extends MessageTarget implements ConfigChangeListener {
447 443
         }
448 444
     }
449 445
 
450
-    /** {@inheritDoc} */
451 446
     @Override
452 447
     public void configChanged(final String domain, final String key) {
453 448
         switch (key) {
@@ -504,7 +499,6 @@ public class Channel extends MessageTarget implements ConfigChangeListener {
504 499
         return res;
505 500
     }
506 501
 
507
-    /** {@inheritDoc} */
508 502
     @Override
509 503
     protected boolean processNotificationArg(final Object arg, final List<Object> args) {
510 504
         if (arg instanceof ClientInfo) {
@@ -539,7 +533,6 @@ public class Channel extends MessageTarget implements ConfigChangeListener {
539 533
         }
540 534
     }
541 535
 
542
-    /** {@inheritDoc} */
543 536
     @Override
544 537
     protected void modifyNotificationArgs(final List<Object> actionArgs,
545 538
             final List<Object> messageArgs) {
@@ -559,7 +552,7 @@ public class Channel extends MessageTarget implements ConfigChangeListener {
559 552
         updateTitle();
560 553
 
561 554
         new Thread(new Runnable() {
562
-            /** {@inheritDoc} */
555
+
563 556
             @Override
564 557
             public void run() {
565 558
                 listenerList.getCallable(TopicChangeListener.class)
@@ -651,7 +644,6 @@ public class Channel extends MessageTarget implements ConfigChangeListener {
651 644
         listenerList.remove(TopicChangeListener.class, listener);
652 645
     }
653 646
 
654
-    /** {@inheritDoc} */
655 647
     @Override
656 648
     @Nonnull
657 649
     public Connection getConnection() {

+ 0
- 19
src/com/dmdirc/ChannelEventHandler.java Целия файл

@@ -82,7 +82,6 @@ public class ChannelEventHandler extends EventHandler implements
82 82
         this.eventBus = eventBus;
83 83
     }
84 84
 
85
-    /** {@inheritDoc} */
86 85
     @SuppressWarnings("unchecked")
87 86
     @Override
88 87
     protected <T extends CallbackInterface> void addCallback(final CallbackManager cbm,
@@ -94,7 +93,6 @@ public class ChannelEventHandler extends EventHandler implements
94 93
         }
95 94
     }
96 95
 
97
-    /** {@inheritDoc} */
98 96
     @Override
99 97
     protected Connection getConnection() {
100 98
         return owner.getConnection();
@@ -111,7 +109,6 @@ public class ChannelEventHandler extends EventHandler implements
111 109
         return client.getClient().equals(owner.getConnection().getParser().getLocalClient());
112 110
     }
113 111
 
114
-    /** {@inheritDoc} */
115 112
     @Override
116 113
     public void onChannelMessage(final Parser parser, final Date date,
117 114
             final ChannelInfo channel, final ChannelClientInfo client,
@@ -124,7 +121,6 @@ public class ChannelEventHandler extends EventHandler implements
124 121
         triggerAction(message, CoreActionType.CHANNEL_MESSAGE, client, message);
125 122
     }
126 123
 
127
-    /** {@inheritDoc} */
128 124
     @Override
129 125
     public void onChannelGotNames(final Parser parser, final Date date, final ChannelInfo channel) {
130 126
         checkParser(parser);
@@ -133,7 +129,6 @@ public class ChannelEventHandler extends EventHandler implements
133 129
         ActionManager.getActionManager().triggerEvent(CoreActionType.CHANNEL_GOTNAMES, null, owner);
134 130
     }
135 131
 
136
-    /** {@inheritDoc} */
137 132
     @Override
138 133
     public void onChannelTopic(final Parser parser, final Date date,
139 134
             final ChannelInfo channel, final boolean isJoinTopic) {
@@ -173,7 +168,6 @@ public class ChannelEventHandler extends EventHandler implements
173 168
         }
174 169
     }
175 170
 
176
-    /** {@inheritDoc} */
177 171
     @Override
178 172
     public void onChannelJoin(final Parser parser, final Date date, final ChannelInfo channel,
179 173
             final ChannelClientInfo client) {
@@ -184,7 +178,6 @@ public class ChannelEventHandler extends EventHandler implements
184 178
         owner.addClient(client);
185 179
     }
186 180
 
187
-    /** {@inheritDoc} */
188 181
     @Override
189 182
     public void onChannelPart(final Parser parser, final Date date, final ChannelInfo channel,
190 183
             final ChannelClientInfo client, final String reason) {
@@ -200,7 +193,6 @@ public class ChannelEventHandler extends EventHandler implements
200 193
         owner.removeClient(client);
201 194
     }
202 195
 
203
-    /** {@inheritDoc} */
204 196
     @Override
205 197
     public void onChannelKick(final Parser parser, final Date date, final ChannelInfo channel,
206 198
             final ChannelClientInfo kickedClient, final ChannelClientInfo client,
@@ -214,7 +206,6 @@ public class ChannelEventHandler extends EventHandler implements
214 206
         owner.removeClient(kickedClient);
215 207
     }
216 208
 
217
-    /** {@inheritDoc} */
218 209
     @Override
219 210
     public void onChannelQuit(final Parser parser, final Date date, final ChannelInfo channel,
220 211
             final ChannelClientInfo client, final String reason) {
@@ -227,7 +218,6 @@ public class ChannelEventHandler extends EventHandler implements
227 218
         owner.removeClient(client);
228 219
     }
229 220
 
230
-    /** {@inheritDoc} */
231 221
     @Override
232 222
     public void onChannelAction(final Parser parser, final Date date, final ChannelInfo channel,
233 223
             final ChannelClientInfo client, final String message,
@@ -241,7 +231,6 @@ public class ChannelEventHandler extends EventHandler implements
241 231
                 CoreActionType.CHANNEL_ACTION, client, message);
242 232
     }
243 233
 
244
-    /** {@inheritDoc} */
245 234
     @Override
246 235
     public void onChannelNickChanged(final Parser parser, final Date date,
247 236
             final ChannelInfo channel, final ChannelClientInfo client, final String oldNick) {
@@ -255,7 +244,6 @@ public class ChannelEventHandler extends EventHandler implements
255 244
         owner.renameClient(oldNick, client.getClient().getNickname());
256 245
     }
257 246
 
258
-    /** {@inheritDoc} */
259 247
     @Override
260 248
     public void onChannelModeChanged(final Parser parser, final Date date,
261 249
             final ChannelInfo channel, final ChannelClientInfo client, final String host,
@@ -283,7 +271,6 @@ public class ChannelEventHandler extends EventHandler implements
283 271
         owner.refreshClients();
284 272
     }
285 273
 
286
-    /** {@inheritDoc} */
287 274
     @Override
288 275
     public void onChannelUserModeChanged(final Parser parser, final Date date,
289 276
             final ChannelInfo channel, final ChannelClientInfo targetClient,
@@ -303,7 +290,6 @@ public class ChannelEventHandler extends EventHandler implements
303 290
         }
304 291
     }
305 292
 
306
-    /** {@inheritDoc} */
307 293
     @Override
308 294
     public void onChannelCTCP(final Parser parser, final Date date,
309 295
             final ChannelInfo channel, final ChannelClientInfo client,
@@ -317,7 +303,6 @@ public class ChannelEventHandler extends EventHandler implements
317 303
         }
318 304
     }
319 305
 
320
-    /** {@inheritDoc} */
321 306
     @Override
322 307
     public void onAwayStateOther(final Parser parser, final Date date,
323 308
             final ClientInfo client, final AwayState oldState, final AwayState state) {
@@ -341,7 +326,6 @@ public class ChannelEventHandler extends EventHandler implements
341 326
         }
342 327
     }
343 328
 
344
-    /** {@inheritDoc} */
345 329
     @Override
346 330
     public void onChannelNotice(final Parser parser, final Date date,
347 331
             final ChannelInfo channel, final ChannelClientInfo client,
@@ -353,7 +337,6 @@ public class ChannelEventHandler extends EventHandler implements
353 337
         triggerAction("channelNotice", CoreActionType.CHANNEL_NOTICE, client, message);
354 338
     }
355 339
 
356
-    /** {@inheritDoc} */
357 340
     @Override
358 341
     public void onChannelNonUserModeChanged(final Parser parser, final Date date,
359 342
             final ChannelInfo channel, final ChannelClientInfo client,
@@ -381,7 +364,6 @@ public class ChannelEventHandler extends EventHandler implements
381 364
         owner.refreshClients();
382 365
     }
383 366
 
384
-    /** {@inheritDoc} */
385 367
     @Override
386 368
     public void onChannelModeNotice(final Parser parser, final Date date,
387 369
             final ChannelInfo channel, final char prefix,
@@ -395,7 +377,6 @@ public class ChannelEventHandler extends EventHandler implements
395 377
                 valueOf(prefix), message);
396 378
     }
397 379
 
398
-    /** {@inheritDoc} */
399 380
     @Override
400 381
     public void onChannelGotListModes(final Parser parser, final Date date,
401 382
             final ChannelInfo channel, final char mode) {

+ 1
- 1
src/com/dmdirc/CorePluginExtractor.java Целия файл

@@ -79,7 +79,7 @@ public class CorePluginExtractor {
79 79
 
80 80
                 final File newFile = new File(newDir,
81 81
                         resourceName.substring(resourceName.lastIndexOf('/') + 1,
82
-                        resourceName.length()));
82
+                                resourceName.length()));
83 83
 
84 84
                 if (!newFile.isDirectory()) {
85 85
                     ResourceManager.getResourceManager().

+ 0
- 1
src/com/dmdirc/CustomWindow.java Целия файл

@@ -68,7 +68,6 @@ public class CustomWindow extends FrameContainer {
68 68
                 Arrays.asList(WindowComponent.TEXTAREA.getIdentifier()));
69 69
     }
70 70
 
71
-    /** {@inheritDoc} */
72 71
     @Override
73 72
     public Connection getConnection() {
74 73
         return getParent() == null ? null : getParent().getConnection();

+ 0
- 1
src/com/dmdirc/FrameContainer.java Целия файл

@@ -528,7 +528,6 @@ public abstract class FrameContainer {
528 528
      */
529 529
     private class IconChanger implements ConfigChangeListener {
530 530
 
531
-        /** {@inheritDoc} */
532 531
         @Override
533 532
         public void configChanged(final String domain, final String key) {
534 533
             iconUpdated();

+ 2
- 6
src/com/dmdirc/GlobalWindow.java Целия файл

@@ -68,8 +68,8 @@ public class GlobalWindow extends WritableFrameContainer {
68 68
             final URLBuilder urlBuilder) {
69 69
         super("icon", "Global", "(Global)", config, parser, messageSinkManager, urlBuilder,
70 70
                 Arrays.asList(
71
-                WindowComponent.TEXTAREA.getIdentifier(),
72
-                WindowComponent.INPUTFIELD.getIdentifier()));
71
+                        WindowComponent.TEXTAREA.getIdentifier(),
72
+                        WindowComponent.INPUTFIELD.getIdentifier()));
73 73
 
74 74
         tabCompleter = tabCompleterFactory.getTabCompleter(config, CommandType.TYPE_GLOBAL);
75 75
     }
@@ -78,19 +78,16 @@ public class GlobalWindow extends WritableFrameContainer {
78 78
         return tabCompleter;
79 79
     }
80 80
 
81
-    /** {@inheritDoc} */
82 81
     @Override
83 82
     public Connection getConnection() {
84 83
         return null;
85 84
     }
86 85
 
87
-    /** {@inheritDoc} */
88 86
     @Override
89 87
     public void sendLine(final String line) {
90 88
         addLine("commandError", "You may only enter commands in the global window.");
91 89
     }
92 90
 
93
-    /** {@inheritDoc} */
94 91
     @Override
95 92
     public int getMaxLineLength() {
96 93
         return -1;
@@ -142,7 +139,6 @@ public class GlobalWindow extends WritableFrameContainer {
142 139
             this.urlBuilder = urlBuilder;
143 140
         }
144 141
 
145
-        /** {@inheritDoc} */
146 142
         @Override
147 143
         public void configChanged(final String domain, final String key) {
148 144
             updateWindowState();

+ 2
- 2
src/com/dmdirc/Main.java Целия файл

@@ -171,7 +171,7 @@ public class Main {
171 171
         globalWindowManager.init();
172 172
 
173 173
         Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
174
-            /** {@inheritDoc} */
174
+
175 175
             @Override
176 176
             public void run() {
177 177
                 eventBus.post(new ClientClosedEvent());
@@ -257,7 +257,7 @@ public class Main {
257 257
             }
258 258
 
259 259
             new Timer().schedule(new TimerTask() {
260
-                /** {@inheritDoc} */
260
+
261 261
                 @Override
262 262
                 public void run() {
263 263
                     for (UIController controller : CONTROLLERS) {

+ 0
- 1
src/com/dmdirc/MessageEncoder.java Целия файл

@@ -51,7 +51,6 @@ public class MessageEncoder implements Encoder {
51 51
         this.parser = parser;
52 52
     }
53 53
 
54
-    /** {@inheritDoc} */
55 54
     @Override
56 55
     public String encode(final String source, final String target,
57 56
             final byte[] message, final int offset, final int length) {

+ 2
- 13
src/com/dmdirc/Query.java Целия файл

@@ -114,13 +114,11 @@ public class Query extends MessageTarget implements PrivateActionListener,
114 114
         updateTitle();
115 115
     }
116 116
 
117
-    /** {@inheritDoc} */
118 117
     @Override
119 118
     public TabCompleter getTabCompleter() {
120 119
         return tabCompleter;
121 120
     }
122 121
 
123
-    /** {@inheritDoc} */
124 122
     @Override
125 123
     public void sendLine(final String line) {
126 124
         sendLine(line, getNickname());
@@ -157,7 +155,6 @@ public class Query extends MessageTarget implements PrivateActionListener,
157 155
         }
158 156
     }
159 157
 
160
-    /** {@inheritDoc} */
161 158
     @Override
162 159
     protected boolean processNotificationArg(final Object arg, final List<Object> args) {
163 160
         if (arg instanceof ClientInfo) {
@@ -171,7 +168,6 @@ public class Query extends MessageTarget implements PrivateActionListener,
171 168
         }
172 169
     }
173 170
 
174
-    /** {@inheritDoc} */
175 171
     @Override
176 172
     public int getMaxLineLength() {
177 173
         return server.getState() == ServerState.CONNECTED ? server.getParser()
@@ -204,7 +200,6 @@ public class Query extends MessageTarget implements PrivateActionListener,
204 200
         }
205 201
     }
206 202
 
207
-    /** {@inheritDoc} */
208 203
     @Override
209 204
     public void onPrivateMessage(final Parser parser, final Date date,
210 205
             final String message, final String host) {
@@ -219,7 +214,6 @@ public class Query extends MessageTarget implements PrivateActionListener,
219 214
         addLine(buff, parts[0], parts[1], parts[2], message);
220 215
     }
221 216
 
222
-    /** {@inheritDoc} */
223 217
     @Override
224 218
     public void onPrivateAction(final Parser parser, final Date date,
225 219
             final String message, final String host) {
@@ -259,7 +253,6 @@ public class Query extends MessageTarget implements PrivateActionListener,
259 253
         }
260 254
     }
261 255
 
262
-    /** {@inheritDoc} */
263 256
     @Override
264 257
     public void onNickChanged(final Parser parser, final Date date,
265 258
             final ClientInfo client, final String oldNick) {
@@ -297,7 +290,6 @@ public class Query extends MessageTarget implements PrivateActionListener,
297 290
         }
298 291
     }
299 292
 
300
-    /** {@inheritDoc} */
301 293
     @Override
302 294
     public void onQuit(final Parser parser, final Date date,
303 295
             final ClientInfo client, final String reason) {
@@ -313,7 +305,6 @@ public class Query extends MessageTarget implements PrivateActionListener,
313 305
         }
314 306
     }
315 307
 
316
-    /** {@inheritDoc} */
317 308
     @Override
318 309
     public void onCompositionStateCanged(final Parser parser, final Date date,
319 310
             final CompositionState state, final String host) {
@@ -324,13 +315,11 @@ public class Query extends MessageTarget implements PrivateActionListener,
324 315
         }
325 316
     }
326 317
 
327
-    /** {@inheritDoc} */
328 318
     @Override
329 319
     public Connection getConnection() {
330 320
         return server;
331 321
     }
332 322
 
333
-    /** {@inheritDoc} */
334 323
     @Override
335 324
     public void close() {
336 325
         super.close();
@@ -368,7 +357,6 @@ public class Query extends MessageTarget implements PrivateActionListener,
368 357
         return nickname;
369 358
     }
370 359
 
371
-    /** {@inheritDoc} */
372 360
     @Override
373 361
     public void setCompositionState(final CompositionState state) {
374 362
         getConnection().getParser().setCompositionState(host, state);
@@ -380,7 +368,8 @@ public class Query extends MessageTarget implements PrivateActionListener,
380 368
         final List<Object> actionArgs = new ArrayList<>();
381 369
         actionArgs.add(this);
382 370
         actionArgs.addAll(Arrays.asList(args));
383
-        return ActionManager.getActionManager().triggerEvent(actionType, buffer, actionArgs.toArray());
371
+        return ActionManager.getActionManager().triggerEvent(actionType, buffer, actionArgs.
372
+                toArray());
384 373
     }
385 374
 
386 375
 }

+ 2
- 9
src/com/dmdirc/Raw.java Целия файл

@@ -70,8 +70,8 @@ public class Raw extends WritableFrameContainer
70 70
                 messageSinkManager,
71 71
                 urlBuilder,
72 72
                 Arrays.asList(
73
-                WindowComponent.TEXTAREA.getIdentifier(),
74
-                WindowComponent.INPUTFIELD.getIdentifier()));
73
+                        WindowComponent.TEXTAREA.getIdentifier(),
74
+                        WindowComponent.INPUTFIELD.getIdentifier()));
75 75
 
76 76
         this.server = newServer;
77 77
 
@@ -90,7 +90,6 @@ public class Raw extends WritableFrameContainer
90 90
         }
91 91
     }
92 92
 
93
-    /** {@inheritDoc} */
94 93
     @Override
95 94
     public void close() {
96 95
         super.close();
@@ -104,38 +103,32 @@ public class Raw extends WritableFrameContainer
104 103
         server.delRaw();
105 104
     }
106 105
 
107
-    /** {@inheritDoc} */
108 106
     @Override
109 107
     public void onDataIn(final Parser parser, final Date date, final String data) {
110 108
         addLine("rawIn", data);
111 109
     }
112 110
 
113
-    /** {@inheritDoc} */
114 111
     @Override
115 112
     public void onDataOut(final Parser parser, final Date date, final String data,
116 113
             final boolean fromParser) {
117 114
         addLine("rawOut", data);
118 115
     }
119 116
 
120
-    /** {@inheritDoc} */
121 117
     @Override
122 118
     public Connection getConnection() {
123 119
         return server;
124 120
     }
125 121
 
126
-    /** {@inheritDoc} */
127 122
     @Override
128 123
     public void sendLine(final String line) {
129 124
         server.sendLine(line);
130 125
     }
131 126
 
132
-    /** {@inheritDoc} */
133 127
     @Override
134 128
     public int getMaxLineLength() {
135 129
         return server.getMaxLineLength();
136 130
     }
137 131
 
138
-    /** {@inheritDoc} */
139 132
     @Override
140 133
     public TabCompleter getTabCompleter() {
141 134
         return server.getTabCompleter();

+ 2
- 70
src/com/dmdirc/Server.java Целия файл

@@ -291,13 +291,11 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
291 291
         }
292 292
     }
293 293
 
294
-    /** {@inheritDoc} */
295 294
     @Override
296 295
     public void connect() {
297 296
         connect(address, profile);
298 297
     }
299 298
 
300
-    /** {@inheritDoc} */
301 299
     @Override
302 300
     @Precondition({
303 301
         "The current parser is null or not connected",
@@ -384,7 +382,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
384 382
                 CoreActionType.SERVER_CONNECTING, null, this);
385 383
     }
386 384
 
387
-    /** {@inheritDoc} */
388 385
     @Override
389 386
     public void reconnect(final String reason) {
390 387
         synchronized (myStateLock) {
@@ -398,19 +395,16 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
398 395
         }
399 396
     }
400 397
 
401
-    /** {@inheritDoc} */
402 398
     @Override
403 399
     public void reconnect() {
404 400
         reconnect(getConfigManager().getOption(DOMAIN_GENERAL, "reconnectmessage"));
405 401
     }
406 402
 
407
-    /** {@inheritDoc} */
408 403
     @Override
409 404
     public void disconnect() {
410 405
         disconnect(getConfigManager().getOption(DOMAIN_GENERAL, "quitmessage"));
411 406
     }
412 407
 
413
-    /** {@inheritDoc} */
414 408
     @Override
415 409
     public void disconnect(final String reason) {
416 410
         synchronized (myStateLock) {
@@ -503,37 +497,31 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
503 497
         }
504 498
     }
505 499
 
506
-    /** {@inheritDoc} */
507 500
     @Override
508 501
     public boolean hasChannel(final String channel) {
509 502
         return channels.containsKey(converter.toLowerCase(channel));
510 503
     }
511 504
 
512
-    /** {@inheritDoc} */
513 505
     @Override
514 506
     public Channel getChannel(final String channel) {
515 507
         return channels.get(converter.toLowerCase(channel));
516 508
     }
517 509
 
518
-    /** {@inheritDoc} */
519 510
     @Override
520 511
     public List<String> getChannels() {
521 512
         return new ArrayList<>(channels.keySet());
522 513
     }
523 514
 
524
-    /** {@inheritDoc} */
525 515
     @Override
526 516
     public boolean hasQuery(final String host) {
527 517
         return queries.containsKey(converter.toLowerCase(parseHostmask(host)[0]));
528 518
     }
529 519
 
530
-    /** {@inheritDoc} */
531 520
     @Override
532 521
     public Query getQuery(final String host) {
533 522
         return getQuery(host, false);
534 523
     }
535 524
 
536
-    /** {@inheritDoc} */
537 525
     @Override
538 526
     public Query getQuery(final String host, final boolean focus) {
539 527
         synchronized (myStateLock) {
@@ -560,7 +548,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
560 548
         return queries.get(lnick);
561 549
     }
562 550
 
563
-    /** {@inheritDoc} */
564 551
     @Override
565 552
     public void updateQuery(final Query query, final String oldNick, final String newNick) {
566 553
         tabCompleter.removeEntry(TabCompletionType.QUERY_NICK, oldNick);
@@ -570,20 +557,17 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
570 557
         queries.remove(converter.toLowerCase(oldNick));
571 558
     }
572 559
 
573
-    /** {@inheritDoc} */
574 560
     @Override
575 561
     public Collection<Query> getQueries() {
576 562
         return Collections.unmodifiableCollection(queries.values());
577 563
     }
578 564
 
579
-    /** {@inheritDoc} */
580 565
     @Override
581 566
     public void delQuery(final Query query) {
582 567
         tabCompleter.removeEntry(TabCompletionType.QUERY_NICK, query.getNickname());
583 568
         queries.remove(converter.toLowerCase(query.getNickname()));
584 569
     }
585 570
 
586
-    /** {@inheritDoc} */
587 571
     @Override
588 572
     public void addRaw() {
589 573
         if (raw == null) {
@@ -601,20 +585,17 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
601 585
         }
602 586
     }
603 587
 
604
-    /** {@inheritDoc} */
605 588
     @Override
606 589
     public void delRaw() {
607 590
         raw = null; //NOPMD
608 591
     }
609 592
 
610
-    /** {@inheritDoc} */
611 593
     @Override
612 594
     public void delChannel(final String chan) {
613 595
         tabCompleter.removeEntry(TabCompletionType.CHANNEL, chan);
614 596
         channels.remove(converter.toLowerCase(chan));
615 597
     }
616 598
 
617
-    /** {@inheritDoc} */
618 599
     @Override
619 600
     public Channel addChannel(final ChannelInfo chan) {
620 601
         return addChannel(chan, !backgroundChannels.contains(chan.getName())
@@ -622,7 +603,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
622 603
                         "hidechannels"));
623 604
     }
624 605
 
625
-    /** {@inheritDoc} */
626 606
     @Override
627 607
     public Channel addChannel(final ChannelInfo chan, final boolean focus) {
628 608
         synchronized (myStateLock) {
@@ -782,7 +762,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
782 762
         return null;
783 763
     }
784 764
 
785
-    /** {@inheritDoc} */
786 765
     @Override
787 766
     public boolean compareURI(final URI uri) {
788 767
         if (parser != null) {
@@ -796,7 +775,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
796 775
         return false;
797 776
     }
798 777
 
799
-    /** {@inheritDoc} */
800 778
     @Override
801 779
     public String[] parseHostmask(final String hostmask) {
802 780
         return protocolDescription.parseHostmask(hostmask);
@@ -851,13 +829,11 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
851 829
         }
852 830
     }
853 831
 
854
-    /** {@inheritDoc} */
855 832
     @Override
856 833
     public void join(final ChannelJoinRequest... requests) {
857 834
         join(true, requests);
858 835
     }
859 836
 
860
-    /** {@inheritDoc} */
861 837
     @Override
862 838
     public void join(final boolean focus, final ChannelJoinRequest... requests) {
863 839
         synchronized (myStateLock) {
@@ -890,7 +866,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
890 866
         }
891 867
     }
892 868
 
893
-    /** {@inheritDoc} */
894 869
     @Override
895 870
     public void sendLine(final String line) {
896 871
         synchronized (myStateLock) {
@@ -906,7 +881,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
906 881
         }
907 882
     }
908 883
 
909
-    /** {@inheritDoc} */
910 884
     @Override
911 885
     public int getMaxLineLength() {
912 886
         try {
@@ -917,19 +891,16 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
917 891
         }
918 892
     }
919 893
 
920
-    /** {@inheritDoc} */
921 894
     @Override
922 895
     public Parser getParser() {
923 896
         return parser;
924 897
     }
925 898
 
926
-    /** {@inheritDoc} */
927 899
     @Override
928 900
     public ConfigProvider getProfile() {
929 901
         return profile;
930 902
     }
931 903
 
932
-    /** {@inheritDoc} */
933 904
     @Override
934 905
     public String getChannelPrefixes() {
935 906
         try {
@@ -940,7 +911,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
940 911
         }
941 912
     }
942 913
 
943
-    /** {@inheritDoc} */
944 914
     @Override
945 915
     public String getAddress() {
946 916
         try {
@@ -951,7 +921,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
951 921
         }
952 922
     }
953 923
 
954
-    /** {@inheritDoc} */
955 924
     @Override
956 925
     public String getNetwork() {
957 926
         try {
@@ -969,7 +938,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
969 938
         }
970 939
     }
971 940
 
972
-    /** {@inheritDoc} */
973 941
     @Override
974 942
     public boolean isNetwork(final String target) {
975 943
         synchronized (myStateLock) {
@@ -1025,49 +993,41 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1025 993
         }
1026 994
     }
1027 995
 
1028
-    /** {@inheritDoc} */
1029 996
     @Override
1030 997
     public String getIrcd() {
1031 998
         return parser.getServerSoftwareType();
1032 999
     }
1033 1000
 
1034
-    /** {@inheritDoc} */
1035 1001
     @Override
1036 1002
     public String getProtocol() {
1037 1003
         return address.getScheme();
1038 1004
     }
1039 1005
 
1040
-    /** {@inheritDoc} */
1041 1006
     @Override
1042 1007
     public boolean isAway() {
1043 1008
         return awayMessage != null;
1044 1009
     }
1045 1010
 
1046
-    /** {@inheritDoc} */
1047 1011
     @Override
1048 1012
     public String getAwayMessage() {
1049 1013
         return awayMessage;
1050 1014
     }
1051 1015
 
1052
-    /** {@inheritDoc} */
1053 1016
     @Override
1054 1017
     public TabCompleter getTabCompleter() {
1055 1018
         return tabCompleter;
1056 1019
     }
1057 1020
 
1058
-    /** {@inheritDoc} */
1059 1021
     @Override
1060 1022
     public ServerState getState() {
1061 1023
         return myState.getState();
1062 1024
     }
1063 1025
 
1064
-    /** {@inheritDoc} */
1065 1026
     @Override
1066 1027
     public ServerStatus getStatus() {
1067 1028
         return myState;
1068 1029
     }
1069 1030
 
1070
-    /** {@inheritDoc} */
1071 1031
     @Override
1072 1032
     public void close() {
1073 1033
         super.close();
@@ -1096,7 +1056,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1096 1056
         manager.unregisterServer(this);
1097 1057
     }
1098 1058
 
1099
-    /** {@inheritDoc} */
1100 1059
     @Override
1101 1060
     public void addLineToAll(final String messageType, final Date date,
1102 1061
             final Object... args) {
@@ -1111,7 +1070,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1111 1070
         addLine(messageType, date, args);
1112 1071
     }
1113 1072
 
1114
-    /** {@inheritDoc} */
1115 1073
     @Override
1116 1074
     public void sendCTCPReply(final String source, final String type, final String args) {
1117 1075
         if (type.equalsIgnoreCase("VERSION")) {
@@ -1125,7 +1083,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1125 1083
         }
1126 1084
     }
1127 1085
 
1128
-    /** {@inheritDoc} */
1129 1086
     @Override
1130 1087
     public boolean isValidChannelName(final String channelName) {
1131 1088
         try {
@@ -1137,13 +1094,11 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1137 1094
         }
1138 1095
     }
1139 1096
 
1140
-    /** {@inheritDoc} */
1141 1097
     @Override
1142 1098
     public Connection getConnection() {
1143 1099
         return this;
1144 1100
     }
1145 1101
 
1146
-    /** {@inheritDoc} */
1147 1102
     @Override
1148 1103
     protected boolean processNotificationArg(final Object arg, final List<Object> args) {
1149 1104
         if (arg instanceof ClientInfo) {
@@ -1157,7 +1112,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1157 1112
         }
1158 1113
     }
1159 1114
 
1160
-    /** {@inheritDoc} */
1161 1115
     @Override
1162 1116
     public void updateTitle() {
1163 1117
         synchronized (myStateLock) {
@@ -1182,7 +1136,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1182 1136
         }
1183 1137
     }
1184 1138
 
1185
-    /** {@inheritDoc} */
1186 1139
     @Override
1187 1140
     public void configChanged(final String domain, final String key) {
1188 1141
         if ("formatter".equals(domain)) {
@@ -1264,7 +1217,7 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1264 1217
             log.info("State lock contended: rerunning on a new thread");
1265 1218
 
1266 1219
             new Thread(new Runnable() {
1267
-                /** {@inheritDoc} */
1220
+
1268 1221
                 @Override
1269 1222
                 public void run() {
1270 1223
                     onSocketClosed();
@@ -1509,38 +1462,32 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1509 1462
         }
1510 1463
     }
1511 1464
 
1512
-    /** {@inheritDoc} */
1513 1465
     @Override
1514 1466
     public IgnoreList getIgnoreList() {
1515 1467
         return ignoreList;
1516 1468
     }
1517 1469
 
1518
-    /** {@inheritDoc} */
1519 1470
     @Override
1520 1471
     public void updateIgnoreList() {
1521 1472
         ignoreList.clear();
1522 1473
         ignoreList.addAll(getConfigManager().getOptionList("network", "ignorelist"));
1523 1474
     }
1524 1475
 
1525
-    /** {@inheritDoc} */
1526 1476
     @Override
1527 1477
     public void saveIgnoreList() {
1528 1478
         getNetworkIdentity().setOption("network", "ignorelist", ignoreList.getRegexList());
1529 1479
     }
1530 1480
 
1531
-    /** {@inheritDoc} */
1532 1481
     @Override
1533 1482
     public ConfigProvider getServerIdentity() {
1534 1483
         return identityFactory.createServerConfig(parser.getServerName());
1535 1484
     }
1536 1485
 
1537
-    /** {@inheritDoc} */
1538 1486
     @Override
1539 1487
     public ConfigProvider getNetworkIdentity() {
1540 1488
         return identityFactory.createNetworkConfig(getNetwork());
1541 1489
     }
1542 1490
 
1543
-    /** {@inheritDoc} */
1544 1491
     @Override
1545 1492
     public void addInviteListener(final InviteListener listener) {
1546 1493
         synchronized (listeners) {
@@ -1548,7 +1495,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1548 1495
         }
1549 1496
     }
1550 1497
 
1551
-    /** {@inheritDoc} */
1552 1498
     @Override
1553 1499
     public void removeInviteListener(final InviteListener listener) {
1554 1500
         synchronized (listeners) {
@@ -1556,7 +1502,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1556 1502
         }
1557 1503
     }
1558 1504
 
1559
-    /** {@inheritDoc} */
1560 1505
     @Override
1561 1506
     public void addInvite(final Invite invite) {
1562 1507
         synchronized (invites) {
@@ -1576,7 +1521,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1576 1521
         }
1577 1522
     }
1578 1523
 
1579
-    /** {@inheritDoc} */
1580 1524
     @Override
1581 1525
     public void acceptInvites(final Invite... invites) {
1582 1526
         final ChannelJoinRequest[] requests = new ChannelJoinRequest[invites.length];
@@ -1588,7 +1532,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1588 1532
         join(requests);
1589 1533
     }
1590 1534
 
1591
-    /** {@inheritDoc} */
1592 1535
     @Override
1593 1536
     public void acceptInvites() {
1594 1537
         synchronized (invites) {
@@ -1596,7 +1539,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1596 1539
         }
1597 1540
     }
1598 1541
 
1599
-    /** {@inheritDoc} */
1600 1542
     @Override
1601 1543
     public void removeInvites(final String channel) {
1602 1544
         for (Invite invite : new ArrayList<>(invites)) {
@@ -1606,7 +1548,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1606 1548
         }
1607 1549
     }
1608 1550
 
1609
-    /** {@inheritDoc} */
1610 1551
     @Override
1611 1552
     public void removeInvites() {
1612 1553
         for (Invite invite : new ArrayList<>(invites)) {
@@ -1614,7 +1555,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1614 1555
         }
1615 1556
     }
1616 1557
 
1617
-    /** {@inheritDoc} */
1618 1558
     @Override
1619 1559
     public void removeInvite(final Invite invite) {
1620 1560
         synchronized (invites) {
@@ -1628,13 +1568,11 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1628 1568
         }
1629 1569
     }
1630 1570
 
1631
-    /** {@inheritDoc} */
1632 1571
     @Override
1633 1572
     public List<Invite> getInvites() {
1634 1573
         return invites;
1635 1574
     }
1636 1575
 
1637
-    /** {@inheritDoc} */
1638 1576
     @Override
1639 1577
     public void addAwayStateListener(final AwayStateListener listener) {
1640 1578
         synchronized (listeners) {
@@ -1642,7 +1580,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1642 1580
         }
1643 1581
     }
1644 1582
 
1645
-    /** {@inheritDoc} */
1646 1583
     @Override
1647 1584
     public void removeAwayStateListener(final AwayStateListener listener) {
1648 1585
         synchronized (listeners) {
@@ -1650,7 +1587,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1650 1587
         }
1651 1588
     }
1652 1589
 
1653
-    /** {@inheritDoc} */
1654 1590
     @Override
1655 1591
     public void updateAwayState(final String message) {
1656 1592
         if ((awayMessage != null && awayMessage.equals(message))
@@ -1661,7 +1597,7 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1661 1597
         awayMessage = message;
1662 1598
 
1663 1599
         new Thread(new Runnable() {
1664
-            /** {@inheritDoc} */
1600
+
1665 1601
             @Override
1666 1602
             public void run() {
1667 1603
                 synchronized (listeners) {
@@ -1679,7 +1615,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1679 1615
         }, "Away state listener runner").start();
1680 1616
     }
1681 1617
 
1682
-    /** {@inheritDoc} */
1683 1618
     @Override
1684 1619
     public void addCertificateProblemListener(final CertificateProblemListener listener) {
1685 1620
         listeners.add(CertificateProblemListener.class, listener);
@@ -1690,13 +1625,11 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1690 1625
         }
1691 1626
     }
1692 1627
 
1693
-    /** {@inheritDoc} */
1694 1628
     @Override
1695 1629
     public void removeCertificateProblemListener(final CertificateProblemListener listener) {
1696 1630
         listeners.remove(CertificateProblemListener.class, listener);
1697 1631
     }
1698 1632
 
1699
-    /** {@inheritDoc} */
1700 1633
     @Override
1701 1634
     public void certificateProblemEncountered(final X509Certificate[] chain,
1702 1635
             final Collection<CertificateException> problems,
@@ -1706,7 +1639,6 @@ public class Server extends WritableFrameContainer implements ConfigChangeListen
1706 1639
         }
1707 1640
     }
1708 1641
 
1709
-    /** {@inheritDoc} */
1710 1642
     @Override
1711 1643
     public void certificateProblemResolved(final CertificateManager manager) {
1712 1644
         for (CertificateProblemListener listener : listeners.get(CertificateProblemListener.class)) {

+ 2
- 36
src/com/dmdirc/ServerEventHandler.java Целия файл

@@ -103,7 +103,6 @@ public class ServerEventHandler extends EventHandler implements
103 103
         this.owner = owner;
104 104
     }
105 105
 
106
-    /** {@inheritDoc} */
107 106
     @Override
108 107
     @SuppressWarnings("unchecked")
109 108
     protected <T extends CallbackInterface> void addCallback(
@@ -111,20 +110,17 @@ public class ServerEventHandler extends EventHandler implements
111 110
         cbm.addCallback(type, (T) this);
112 111
     }
113 112
 
114
-    /** {@inheritDoc} */
115 113
     @Override
116 114
     protected Connection getConnection() {
117 115
         return owner;
118 116
     }
119 117
 
120
-    /** {@inheritDoc} */
121 118
     @Override
122 119
     public void onChannelSelfJoin(final Parser parser, final Date date, final ChannelInfo channel) {
123 120
         checkParser(parser);
124 121
         owner.addChannel(channel);
125 122
     }
126 123
 
127
-    /** {@inheritDoc} */
128 124
     @Override
129 125
     public void onPrivateMessage(final Parser parser, final Date date, final String message,
130 126
             final String host) {
@@ -135,7 +131,6 @@ public class ServerEventHandler extends EventHandler implements
135 131
         }
136 132
     }
137 133
 
138
-    /** {@inheritDoc} */
139 134
     @Override
140 135
     public void onPrivateAction(final Parser parser, final Date date, final String message,
141 136
             final String host) {
@@ -146,7 +141,6 @@ public class ServerEventHandler extends EventHandler implements
146 141
         }
147 142
     }
148 143
 
149
-    /** {@inheritDoc} */
150 144
     @Override
151 145
     public void onErrorInfo(final Parser parser, final Date date, final ParserError errorInfo) {
152 146
         final ErrorLevel errorLevel = ErrorLevel.UNKNOWN;
@@ -175,7 +169,6 @@ public class ServerEventHandler extends EventHandler implements
175 169
         }
176 170
     }
177 171
 
178
-    /** {@inheritDoc} */
179 172
     @Override
180 173
     public void onPrivateCTCP(final Parser parser, final Date date, final String type,
181 174
             final String message, final String host) {
@@ -189,7 +182,6 @@ public class ServerEventHandler extends EventHandler implements
189 182
         }
190 183
     }
191 184
 
192
-    /** {@inheritDoc} */
193 185
     @Override
194 186
     public void onPrivateCTCPReply(final Parser parser, final Date date, final String type,
195 187
             final String message, final String host) {
@@ -201,7 +193,6 @@ public class ServerEventHandler extends EventHandler implements
201 193
                 host), type, message);
202 194
     }
203 195
 
204
-    /** {@inheritDoc} */
205 196
     @Override
206 197
     public void onSocketClosed(final Parser parser, final Date date) {
207 198
         if (owner.getParser() == parser) {
@@ -209,7 +200,6 @@ public class ServerEventHandler extends EventHandler implements
209 200
         }
210 201
     }
211 202
 
212
-    /** {@inheritDoc} */
213 203
     @Override
214 204
     public void onPrivateNotice(final Parser parser, final Date date,
215 205
             final String message, final String host) {
@@ -221,7 +211,6 @@ public class ServerEventHandler extends EventHandler implements
221 211
                 host), message);
222 212
     }
223 213
 
224
-    /** {@inheritDoc} */
225 214
     @Override
226 215
     public void onServerNotice(final Parser parser, final Date date,
227 216
             final String message, final String host) {
@@ -233,7 +222,6 @@ public class ServerEventHandler extends EventHandler implements
233 222
                 getClient(host), message);
234 223
     }
235 224
 
236
-    /** {@inheritDoc} */
237 225
     @Override
238 226
     public void onMOTDStart(final Parser parser, final Date date, final String data) {
239 227
         checkParser(parser);
@@ -242,7 +230,6 @@ public class ServerEventHandler extends EventHandler implements
242 230
         triggerAction("motdStart", CoreActionType.SERVER_MOTDSTART, data);
243 231
     }
244 232
 
245
-    /** {@inheritDoc} */
246 233
     @Override
247 234
     public void onMOTDLine(final Parser parser, final Date date, final String data) {
248 235
         checkParser(parser);
@@ -251,7 +238,6 @@ public class ServerEventHandler extends EventHandler implements
251 238
         triggerAction("motdLine", CoreActionType.SERVER_MOTDLINE, data);
252 239
     }
253 240
 
254
-    /** {@inheritDoc} */
255 241
     @Override
256 242
     public void onMOTDEnd(final Parser parser, final Date date,
257 243
             final boolean noMOTD, final String data) {
@@ -261,7 +247,6 @@ public class ServerEventHandler extends EventHandler implements
261 247
         triggerAction("motdEnd", CoreActionType.SERVER_MOTDEND, data);
262 248
     }
263 249
 
264
-    /** {@inheritDoc} */
265 250
     @Override
266 251
     public void onNumeric(final Parser parser, final Date date, final int numeric,
267 252
             final String[] token) {
@@ -269,14 +254,12 @@ public class ServerEventHandler extends EventHandler implements
269 254
         owner.onNumeric(numeric, token);
270 255
     }
271 256
 
272
-    /** {@inheritDoc} */
273 257
     @Override
274 258
     public void onPingFailed(final Parser parser, final Date date) {
275 259
         checkParser(parser);
276 260
         owner.onPingFailed();
277 261
     }
278 262
 
279
-    /** {@inheritDoc} */
280 263
     @Override
281 264
     public void onPingSent(final Parser parser, final Date date) {
282 265
         checkParser(parser);
@@ -285,7 +268,6 @@ public class ServerEventHandler extends EventHandler implements
285 268
                 CoreActionType.SERVER_PINGSENT, null, owner);
286 269
     }
287 270
 
288
-    /** {@inheritDoc} */
289 271
     @Override
290 272
     public void onPingSuccess(final Parser parser, final Date date) {
291 273
         checkParser(parser);
@@ -295,7 +277,6 @@ public class ServerEventHandler extends EventHandler implements
295 277
                 Long.valueOf(owner.getParser().getServerLatency()));
296 278
     }
297 279
 
298
-    /** {@inheritDoc} */
299 280
     @Override
300 281
     public void onAwayState(final Parser parser, final Date date, final AwayState oldState,
301 282
             final AwayState currentState, final String reason) {
@@ -317,28 +298,24 @@ public class ServerEventHandler extends EventHandler implements
317 298
         }
318 299
     }
319 300
 
320
-    /** {@inheritDoc} */
321 301
     @Override
322 302
     public void onConnectError(final Parser parser, final Date date, final ParserError errorInfo) {
323 303
         checkParser(parser);
324 304
         owner.onConnectError(errorInfo);
325 305
     }
326 306
 
327
-    /** {@inheritDoc} */
328 307
     @Override
329 308
     public void onNickInUse(final Parser parser, final Date date, final String nickname) {
330 309
         owner.onNickInUse(nickname);
331 310
         checkParser(parser);
332 311
     }
333 312
 
334
-    /** {@inheritDoc} */
335 313
     @Override
336 314
     public void onServerReady(final Parser parser, final Date date) {
337 315
         checkParser(parser);
338 316
         owner.onPost005();
339 317
     }
340 318
 
341
-    /** {@inheritDoc} */
342 319
     @Override
343 320
     public void onNoticeAuth(final Parser parser, final Date date, final String data) {
344 321
         checkParser(parser);
@@ -347,7 +324,6 @@ public class ServerEventHandler extends EventHandler implements
347 324
         triggerAction("authNotice", CoreActionType.SERVER_AUTHNOTICE, data);
348 325
     }
349 326
 
350
-    /** {@inheritDoc} */
351 327
     @Override
352 328
     public void onUnknownNotice(final Parser parser, final Date date, final String message,
353 329
             final String target, final String host) {
@@ -358,7 +334,6 @@ public class ServerEventHandler extends EventHandler implements
358 334
         triggerAction("unknownNotice", CoreActionType.SERVER_UNKNOWNNOTICE, host, target, message);
359 335
     }
360 336
 
361
-    /** {@inheritDoc} */
362 337
     @Override
363 338
     public void onUnknownMessage(final Parser parser, final Date date, final String message,
364 339
             final String target, final String host) {
@@ -378,7 +353,6 @@ public class ServerEventHandler extends EventHandler implements
378 353
         }
379 354
     }
380 355
 
381
-    /** {@inheritDoc} */
382 356
     @Override
383 357
     public void onUnknownAction(final Parser parser, final Date date, final String message,
384 358
             final String target, final String host) {
@@ -397,7 +371,6 @@ public class ServerEventHandler extends EventHandler implements
397 371
         }
398 372
     }
399 373
 
400
-    /** {@inheritDoc} */
401 374
     @Override
402 375
     public void onUserModeChanged(final Parser parser, final Date date,
403 376
             final ClientInfo client, final String host, final String modes) {
@@ -409,7 +382,6 @@ public class ServerEventHandler extends EventHandler implements
409 382
                 getClient(host), modes);
410 383
     }
411 384
 
412
-    /** {@inheritDoc} */
413 385
     @Override
414 386
     public void onUserModeDiscovered(final Parser parser, final Date date,
415 387
             final ClientInfo client, final String modes) {
@@ -422,7 +394,6 @@ public class ServerEventHandler extends EventHandler implements
422 394
                 CoreActionType.SERVER_USERMODES, client, modes);
423 395
     }
424 396
 
425
-    /** {@inheritDoc} */
426 397
     @Override
427 398
     public void onInvite(final Parser parser, final Date date, final String userHost,
428 399
             final String channel) {
@@ -436,7 +407,6 @@ public class ServerEventHandler extends EventHandler implements
436 407
                 getClient(userHost), channel);
437 408
     }
438 409
 
439
-    /** {@inheritDoc} */
440 410
     @Override
441 411
     public void onWallop(final Parser parser, final Date date, final String message,
442 412
             final String host) {
@@ -449,7 +419,6 @@ public class ServerEventHandler extends EventHandler implements
449 419
 
450 420
     }
451 421
 
452
-    /** {@inheritDoc} */
453 422
     @Override
454 423
     public void onWalluser(final Parser parser, final Date date, final String message,
455 424
             final String host) {
@@ -461,7 +430,6 @@ public class ServerEventHandler extends EventHandler implements
461 430
                 message);
462 431
     }
463 432
 
464
-    /** {@inheritDoc} */
465 433
     @Override
466 434
     public void onWallDesync(final Parser parser, final Date date, final String message,
467 435
             final String host) {
@@ -473,7 +441,6 @@ public class ServerEventHandler extends EventHandler implements
473 441
                 host), message);
474 442
     }
475 443
 
476
-    /** {@inheritDoc} */
477 444
     @Override
478 445
     public void onNickChanged(final Parser parser, final Date date, final ClientInfo client,
479 446
             final String oldNick) {
@@ -488,7 +455,6 @@ public class ServerEventHandler extends EventHandler implements
488 455
         }
489 456
     }
490 457
 
491
-    /** {@inheritDoc} */
492 458
     @Override
493 459
     public void onServerError(final Parser parser, final Date date, final String message) {
494 460
         checkParser(parser);
@@ -497,7 +463,6 @@ public class ServerEventHandler extends EventHandler implements
497 463
         triggerAction("serverError", CoreActionType.SERVER_ERROR, message);
498 464
     }
499 465
 
500
-    /** {@inheritDoc} */
501 466
     @Override
502 467
     protected void checkParser(final Parser parser) {
503 468
         super.checkParser(parser);
@@ -518,7 +483,8 @@ public class ServerEventHandler extends EventHandler implements
518 483
         final List<Object> actionArgs = new ArrayList<>();
519 484
         actionArgs.add(owner);
520 485
         actionArgs.addAll(Arrays.asList(args));
521
-        return ActionManager.getActionManager().triggerEvent(actionType, buffer, actionArgs.toArray());
486
+        return ActionManager.getActionManager().triggerEvent(actionType, buffer, actionArgs.
487
+                toArray());
522 488
     }
523 489
 
524 490
 }

+ 2
- 3
src/com/dmdirc/ServerManager.java Целия файл

@@ -90,11 +90,10 @@ public class ServerManager implements ServerFactory {
90 90
         this.serverFactoryImpl = serverFactory;
91 91
     }
92 92
 
93
-    /** {@inheritDoc} */
94 93
     @Override
95 94
     public Server createServer(final URI uri, final ConfigProvider profile) {
96
-        final ConfigProviderMigrator configProvider =
97
-                identityFactory.createMigratableConfig(uri.getScheme(), "", "", uri.getHost());
95
+        final ConfigProviderMigrator configProvider = identityFactory.createMigratableConfig(uri.
96
+                getScheme(), "", "", uri.getHost());
98 97
 
99 98
         final Server server = serverFactoryImpl.getServer(
100 99
                 configProvider,

+ 19
- 20
src/com/dmdirc/ServerState.java Целия файл

@@ -32,42 +32,41 @@ public enum ServerState {
32 32
 
33 33
     /** Indicates the client is in the process of connecting. */
34 34
     CONNECTING(
35
-    "CONNECTED", // Connection attempt succeeded
36
-    "TRANSIENTLY_DISCONNECTED", // Connection attempt failed
37
-    "DISCONNECTING", // User ordered a disconnection
38
-    "CLOSING" // DMDirc is closing
35
+            "CONNECTED", // Connection attempt succeeded
36
+            "TRANSIENTLY_DISCONNECTED", // Connection attempt failed
37
+            "DISCONNECTING", // User ordered a disconnection
38
+            "CLOSING" // DMDirc is closing
39 39
     ),
40 40
     /** Indicates the client has connected to the server. */
41 41
     CONNECTED(
42
-    "DISCONNECTING", // User ordered a disconnection
43
-    "TRANSIENTLY_DISCONNECTED", // Server caused a disconnection
44
-    "CLOSING" // DMDirc is closing
42
+            "DISCONNECTING", // User ordered a disconnection
43
+            "TRANSIENTLY_DISCONNECTED", // Server caused a disconnection
44
+            "CLOSING" // DMDirc is closing
45 45
     ),
46 46
     /** Indicates that we've been temporarily disconnected. */
47 47
     TRANSIENTLY_DISCONNECTED(
48
-    "CONNECTING", // User forced a connect attempt
49
-    "RECONNECT_WAIT", // Waiting for auto-reconnect
50
-    "CLOSING" // DMDirc is closing
48
+            "CONNECTING", // User forced a connect attempt
49
+            "RECONNECT_WAIT", // Waiting for auto-reconnect
50
+            "CLOSING" // DMDirc is closing
51 51
     ),
52 52
     /** Indicates that the user has told us to disconnect. */
53 53
     DISCONNECTED(
54
-    "CONNECTING", // User forced a connect attempt
55
-    "CLOSING" // DMDirc is closing
54
+            "CONNECTING", // User forced a connect attempt
55
+            "CLOSING" // DMDirc is closing
56 56
     ),
57 57
     /** In the process of disconnecting. */
58 58
     DISCONNECTING(
59
-    "DISCONNECTED", // Socket closed
60
-    "CLOSING" // DMDirc is closing
59
+            "DISCONNECTED", // Socket closed
60
+            "CLOSING" // DMDirc is closing
61 61
     ),
62 62
     /** Indicates we're waiting for the auto-reconnect timer to fire. */
63 63
     RECONNECT_WAIT(
64
-    "CONNECTING", // User forced a connect attempt
65
-    "TRANSIENTLY_DISCONNECTED", // Reconnect timer expired
66
-    "DISCONNECTED", // User forced a disconnect
67
-    "CLOSING" // DMDirc is closing
64
+            "CONNECTING", // User forced a connect attempt
65
+            "TRANSIENTLY_DISCONNECTED", // Reconnect timer expired
66
+            "DISCONNECTED", // User forced a disconnect
67
+            "CLOSING" // DMDirc is closing
68 68
     ),
69
-    /** Indicates that the server frame and its
70
-     * children are closing. */
69
+    /** Indicates that the server frame and its children are closing. */
71 70
     CLOSING;
72 71
     /** The allowed transitions from this state. */
73 72
     private final List<String> transitions;

+ 0
- 4
src/com/dmdirc/SystemLifecycleController.java Целия файл

@@ -46,25 +46,21 @@ public class SystemLifecycleController implements LifecycleController {
46 46
         this.serverManager = serverManager;
47 47
     }
48 48
 
49
-    /** {@inheritDoc} */
50 49
     @Override
51 50
     public void quit() {
52 51
         quit(0);
53 52
     }
54 53
 
55
-    /** {@inheritDoc} */
56 54
     @Override
57 55
     public void quit(final int exitCode) {
58 56
         quit(configProvider.getOption("general", "closemessage"), exitCode);
59 57
     }
60 58
 
61
-    /** {@inheritDoc} */
62 59
     @Override
63 60
     public void quit(final String reason) {
64 61
         quit(reason, 0);
65 62
     }
66 63
 
67
-    /** {@inheritDoc} */
68 64
     @Override
69 65
     public void quit(final String reason, final int exitCode) {
70 66
         serverManager.disconnectAll(reason);

+ 0
- 1
src/com/dmdirc/Topic.java Целия файл

@@ -74,7 +74,6 @@ public class Topic {
74 74
         return topic;
75 75
     }
76 76
 
77
-    /** {@inheritDoc} */
78 77
     @Override
79 78
     public String toString() {
80 79
         return topic;

+ 3
- 11
src/com/dmdirc/actions/Action.java Целия файл

@@ -332,7 +332,7 @@ public class Action extends ActionModel implements ConfigChangeListener {
332 332
             if (trigger == null) {
333 333
                 Logger.appError(ErrorLevel.LOW, "ActionType was null",
334 334
                         new IllegalArgumentException("Triggers: "
335
-                        + Arrays.toString(triggers)));
335
+                                + Arrays.toString(triggers)));
336 336
                 continue;
337 337
             }
338 338
 
@@ -419,7 +419,6 @@ public class Action extends ActionModel implements ConfigChangeListener {
419 419
         String starget = null;
420 420
 
421 421
         // ------ Read the argument
422
-
423 422
         try {
424 423
             arg = Integer.parseInt(data.get("argument"));
425 424
         } catch (NumberFormatException ex) {
@@ -434,7 +433,6 @@ public class Action extends ActionModel implements ConfigChangeListener {
434 433
         }
435 434
 
436 435
         // ------ Read the component or the source
437
-
438 436
         if (arg == -1) {
439 437
             starget = data.get("starget");
440 438
 
@@ -450,7 +448,6 @@ public class Action extends ActionModel implements ConfigChangeListener {
450 448
         }
451 449
 
452 450
         // ------ Read the comparison
453
-
454 451
         comparison = actionController.getComparison(data.get("comparison"));
455 452
         if (comparison == null) {
456 453
             error(ActionErrorType.CONDITIONS, "Invalid comparison specified: "
@@ -466,7 +463,6 @@ public class Action extends ActionModel implements ConfigChangeListener {
466 463
         }
467 464
 
468 465
         // ------ Read the target
469
-
470 466
         target = data.get("target");
471 467
 
472 468
         if (target == null) {
@@ -536,7 +532,6 @@ public class Action extends ActionModel implements ConfigChangeListener {
536 532
                 + group + "/" + name + ": " + message);
537 533
     }
538 534
 
539
-    /** {@inheritDoc} */
540 535
     @Override
541 536
     public void setName(final String newName) {
542 537
         super.setName(newName);
@@ -547,7 +542,6 @@ public class Action extends ActionModel implements ConfigChangeListener {
547 542
         save();
548 543
     }
549 544
 
550
-    /** {@inheritDoc} */
551 545
     @Override
552 546
     public void setGroup(final String newGroup) {
553 547
         super.setGroup(newGroup);
@@ -570,7 +564,6 @@ public class Action extends ActionModel implements ConfigChangeListener {
570 564
         new File(location).delete();
571 565
     }
572 566
 
573
-    /** {@inheritDoc} */
574 567
     @Override
575 568
     public String toString() {
576 569
         final String parent = super.toString();
@@ -579,7 +572,6 @@ public class Action extends ActionModel implements ConfigChangeListener {
579 572
                 + ",location=" + location + "]";
580 573
     }
581 574
 
582
-    /** {@inheritDoc} */
583 575
     @Override
584 576
     public void configChanged(final String domain, final String key) {
585 577
         checkDisabled();
@@ -592,8 +584,8 @@ public class Action extends ActionModel implements ConfigChangeListener {
592 584
      */
593 585
     protected void checkDisabled() {
594 586
         final String key = (group + "/" + name).replace(' ', '.');
595
-        final boolean disabled =
596
-                identityController.getGlobalConfiguration().hasOptionBool("disable_action", key)
587
+        final boolean disabled = identityController.getGlobalConfiguration().hasOptionBool(
588
+                "disable_action", key)
597 589
                 && identityController.getGlobalConfiguration().getOptionBool("disable_action", key);
598 590
 
599 591
         if (disabled && status == ActionStatus.ACTIVE) {

+ 0
- 6
src/com/dmdirc/actions/ActionComponentChain.java Целия файл

@@ -69,7 +69,6 @@ public class ActionComponentChain implements ActionComponent {
69 69
         }
70 70
     }
71 71
 
72
-    /** {@inheritDoc} */
73 72
     @Override
74 73
     public Object get(final Object arg) {
75 74
         Object res = arg;
@@ -85,7 +84,6 @@ public class ActionComponentChain implements ActionComponent {
85 84
         return res;
86 85
     }
87 86
 
88
-    /** {@inheritDoc} */
89 87
     @Precondition("This component chain has one or more components")
90 88
     @Override
91 89
     public Class<?> appliesTo() {
@@ -94,7 +92,6 @@ public class ActionComponentChain implements ActionComponent {
94 92
         return components.get(0).appliesTo();
95 93
     }
96 94
 
97
-    /** {@inheritDoc} */
98 95
     @Precondition("This component chain has one or more components")
99 96
     @Override
100 97
     public Class<?> getType() {
@@ -103,7 +100,6 @@ public class ActionComponentChain implements ActionComponent {
103 100
         return components.get(components.size() - 1).getType();
104 101
     }
105 102
 
106
-    /** {@inheritDoc} */
107 103
     @Precondition("This component chain has one or more components")
108 104
     @Override
109 105
     public String getName() {
@@ -119,7 +115,6 @@ public class ActionComponentChain implements ActionComponent {
119 115
         return name.substring(3);
120 116
     }
121 117
 
122
-    /** {@inheritDoc} */
123 118
     @Override
124 119
     @Precondition("This component chain has one or more components")
125 120
     public String toString() {
@@ -135,7 +130,6 @@ public class ActionComponentChain implements ActionComponent {
135 130
         return name.substring(1);
136 131
     }
137 132
 
138
-    /** {@inheritDoc} */
139 133
     @Override
140 134
     public String name() {
141 135
         return toString();

+ 0
- 3
src/com/dmdirc/actions/ActionCondition.java Целия файл

@@ -186,14 +186,12 @@ public class ActionCondition {
186 186
         this.starget = starget;
187 187
     }
188 188
 
189
-    /** {@inheritDoc} */
190 189
     @Override
191 190
     public String toString() {
192 191
         return "[ arg=" + arg + ", component=" + component + ", comparison="
193 192
                 + comparison + ", target=" + target + ", starget=" + starget + " ]";
194 193
     }
195 194
 
196
-    /** {@inheritDoc} */
197 195
     @Override
198 196
     public boolean equals(final Object obj) {
199 197
         if (!(obj instanceof ActionCondition)) {
@@ -207,7 +205,6 @@ public class ActionCondition {
207 205
                 && starget.equals(o.getStarget());
208 206
     }
209 207
 
210
-    /** {@inheritDoc} */
211 208
     @Override
212 209
     public int hashCode() {
213 210
         return arg + 100 * (arg == -1 ? starget.hashCode() : component.hashCode())

+ 0
- 1
src/com/dmdirc/actions/ActionGroup.java Целия файл

@@ -175,7 +175,6 @@ public class ActionGroup implements Iterable<Action> {
175 175
         actions.remove(action);
176 176
     }
177 177
 
178
-    /** {@inheritDoc} */
179 178
     @Override
180 179
     public Iterator<Action> iterator() {
181 180
         return actions.iterator();

+ 0
- 26
src/com/dmdirc/actions/ActionManager.java Целия файл

@@ -186,7 +186,6 @@ public class ActionManager implements ActionController {
186 186
         eventBus.register(this);
187 187
     }
188 188
 
189
-    /** {@inheritDoc} */
190 189
     @Override
191 190
     public void saveAllActions() {
192 191
         for (ActionGroup group : groups.values()) {
@@ -207,20 +206,17 @@ public class ActionManager implements ActionController {
207 206
         saveAllActions();
208 207
     }
209 208
 
210
-    /** {@inheritDoc} */
211 209
     @Override
212 210
     public void registerSetting(final String name, final String value) {
213 211
         LOG.debug("Registering new action setting: {} = {}", name, value);
214 212
         identityManager.getAddonSettings().setOption("actions", name, value);
215 213
     }
216 214
 
217
-    /** {@inheritDoc} */
218 215
     @Override
219 216
     public void addGroup(final ActionGroup group) {
220 217
         groups.put(group.getName(), group);
221 218
     }
222 219
 
223
-    /** {@inheritDoc} */
224 220
     @Override
225 221
     public void registerTypes(final ActionType[] newTypes) {
226 222
         for (ActionType type : newTypes) {
@@ -234,7 +230,6 @@ public class ActionManager implements ActionController {
234 230
         }
235 231
     }
236 232
 
237
-    /** {@inheritDoc} */
238 233
     @Override
239 234
     public void registerComponents(final ActionComponent[] comps) {
240 235
         for (ActionComponent comp : comps) {
@@ -245,7 +240,6 @@ public class ActionManager implements ActionController {
245 240
         }
246 241
     }
247 242
 
248
-    /** {@inheritDoc} */
249 243
     @Override
250 244
     public void registerComparisons(final ActionComparison[] comps) {
251 245
         for (ActionComparison comp : comps) {
@@ -256,19 +250,16 @@ public class ActionManager implements ActionController {
256 250
         }
257 251
     }
258 252
 
259
-    /** {@inheritDoc} */
260 253
     @Override
261 254
     public Map<String, ActionGroup> getGroupsMap() {
262 255
         return Collections.unmodifiableMap(groups);
263 256
     }
264 257
 
265
-    /** {@inheritDoc} */
266 258
     @Override
267 259
     public MapList<String, ActionType> getGroupedTypes() {
268 260
         return new MapList<>(typeGroups);
269 261
     }
270 262
 
271
-    /** {@inheritDoc} */
272 263
     @Override
273 264
     public void loadUserActions() {
274 265
         actions.clear();
@@ -336,7 +327,6 @@ public class ActionManager implements ActionController {
336 327
         }
337 328
     }
338 329
 
339
-    /** {@inheritDoc} */
340 330
     @Override
341 331
     public void addAction(final Action action) {
342 332
         checkNotNull(action);
@@ -354,7 +344,6 @@ public class ActionManager implements ActionController {
354 344
         getOrCreateGroup(action.getGroup()).add(action);
355 345
     }
356 346
 
357
-    /** {@inheritDoc} */
358 347
     @Override
359 348
     public ActionGroup getOrCreateGroup(final String name) {
360 349
         if (!groups.containsKey(name)) {
@@ -364,7 +353,6 @@ public class ActionManager implements ActionController {
364 353
         return groups.get(name);
365 354
     }
366 355
 
367
-    /** {@inheritDoc} */
368 356
     @Override
369 357
     public void removeAction(final Action action) {
370 358
         checkNotNull(action);
@@ -373,14 +361,12 @@ public class ActionManager implements ActionController {
373 361
         getOrCreateGroup(action.getGroup()).remove(action);
374 362
     }
375 363
 
376
-    /** {@inheritDoc} */
377 364
     @Override
378 365
     public void reregisterAction(final Action action) {
379 366
         removeAction(action);
380 367
         addAction(action);
381 368
     }
382 369
 
383
-    /** {@inheritDoc} */
384 370
     @Override
385 371
     public boolean triggerEvent(final ActionType type,
386 372
             final StringBuffer format, final Object... arguments) {
@@ -535,7 +521,6 @@ public class ActionManager implements ActionController {
535 521
         return arguments;
536 522
     }
537 523
 
538
-    /** {@inheritDoc} */
539 524
     @Override
540 525
     public ActionGroup createGroup(final String group) {
541 526
         checkNotNull(group);
@@ -553,7 +538,6 @@ public class ActionManager implements ActionController {
553 538
         }
554 539
     }
555 540
 
556
-    /** {@inheritDoc} */
557 541
     @Override
558 542
     public void deleteGroup(final String group) {
559 543
         checkNotNull(group);
@@ -585,7 +569,6 @@ public class ActionManager implements ActionController {
585 569
         groups.remove(group);
586 570
     }
587 571
 
588
-    /** {@inheritDoc} */
589 572
     @Override
590 573
     public void changeGroupName(final String oldName, final String newName) {
591 574
         checkNotNull(oldName);
@@ -607,7 +590,6 @@ public class ActionManager implements ActionController {
607 590
         deleteGroup(oldName);
608 591
     }
609 592
 
610
-    /** {@inheritDoc} */
611 593
     @Override
612 594
     public ActionType getType(final String type) {
613 595
         if (type == null || type.isEmpty()) {
@@ -623,7 +605,6 @@ public class ActionManager implements ActionController {
623 605
         return null;
624 606
     }
625 607
 
626
-    /** {@inheritDoc} */
627 608
     @Override
628 609
     public List<ActionType> findCompatibleTypes(final ActionType type) {
629 610
         checkNotNull(type);
@@ -638,7 +619,6 @@ public class ActionManager implements ActionController {
638 619
         return res;
639 620
     }
640 621
 
641
-    /** {@inheritDoc} */
642 622
     @Override
643 623
     public List<ActionComponent> findCompatibleComponents(final Class<?> target) {
644 624
         checkNotNull(target);
@@ -653,7 +633,6 @@ public class ActionManager implements ActionController {
653 633
         return res;
654 634
     }
655 635
 
656
-    /** {@inheritDoc} */
657 636
     @Override
658 637
     public List<ActionComparison> findCompatibleComparisons(final Class<?> target) {
659 638
         checkNotNull(target);
@@ -668,7 +647,6 @@ public class ActionManager implements ActionController {
668 647
         return res;
669 648
     }
670 649
 
671
-    /** {@inheritDoc} */
672 650
     @Override
673 651
     public ActionComponent getComponent(final String type) {
674 652
         checkNotNull(type);
@@ -683,7 +661,6 @@ public class ActionManager implements ActionController {
683 661
         return null;
684 662
     }
685 663
 
686
-    /** {@inheritDoc} */
687 664
     @Override
688 665
     public ActionComparison getComparison(final String type) {
689 666
         checkNotNull(type);
@@ -715,7 +692,6 @@ public class ActionManager implements ActionController {
715 692
         new File(path).delete();
716 693
     }
717 694
 
718
-    /** {@inheritDoc} */
719 695
     @Override
720 696
     public void registerListener(final ActionListener listener, final ActionType... types) {
721 697
         for (ActionType type : types) {
@@ -723,7 +699,6 @@ public class ActionManager implements ActionController {
723 699
         }
724 700
     }
725 701
 
726
-    /** {@inheritDoc} */
727 702
     @Override
728 703
     public void unregisterListener(final ActionListener listener, final ActionType... types) {
729 704
         for (ActionType type : types) {
@@ -731,7 +706,6 @@ public class ActionManager implements ActionController {
731 706
         }
732 707
     }
733 708
 
734
-    /** {@inheritDoc} */
735 709
     @Override
736 710
     public void unregisterListener(final ActionListener listener) {
737 711
         listeners.removeFromAll(listener);

+ 0
- 1
src/com/dmdirc/actions/ActionModel.java Целия файл

@@ -440,7 +440,6 @@ public class ActionModel {
440 440
         this.modified = false;
441 441
     }
442 442
 
443
-    /** {@inheritDoc} */
444 443
     @Override
445 444
     public String toString() {
446 445
         return "[name=" + group + "/" + name + ", triggers="

+ 1
- 2
src/com/dmdirc/actions/ActionSubstitutor.java Целия файл

@@ -70,8 +70,7 @@ public class ActionSubstitutor {
70 70
     /** Pattern to determine if a substitution is a word number type. */
71 71
     private static final Pattern NUMBER_PATTERN = Pattern.compile("([0-9]+)(-([0-9]+)?)?");
72 72
     /** Pattern to determine if a substitution is an argument+component type. */
73
-    private static final Pattern COMP_PATTERN =
74
-            Pattern.compile("([0-9]+)\\.([A-Z_]+(\\.[A-Z_]+)*)");
73
+    private static final Pattern COMP_PATTERN = Pattern.compile("([0-9]+)\\.([A-Z_]+(\\.[A-Z_]+)*)");
75 74
     /** Pattern to determine if a substitution is a server component type. */
76 75
     private static final Pattern SERVER_PATTERN = Pattern.compile("[A-Z_]+(\\.[A-Z_]+)*");
77 76
     /** The action controller to use to find components. */

+ 0
- 1
src/com/dmdirc/actions/ActionTypeComparator.java Целия файл

@@ -39,7 +39,6 @@ public final class ActionTypeComparator implements Comparator<ActionType>, Seria
39 39
      */
40 40
     private static final long serialVersionUID = 1;
41 41
 
42
-    /** {@inheritDoc} */
43 42
     @Override
44 43
     public int compare(final ActionType o1, final ActionType o2) {
45 44
         return o1.getName().compareTo(o2.getName());

+ 0
- 8
src/com/dmdirc/actions/ColourActionComparison.java Целия файл

@@ -65,26 +65,22 @@ public class ColourActionComparison {
65 65
     /** Checks if the colour is the same as another colour. */
66 66
     private class Equals implements ActionComparison {
67 67
 
68
-        /** {@inheritDoc} */
69 68
         @Override
70 69
         public boolean test(final Object arg1, final Object arg2) {
71 70
             return ((Colour) arg1).equals(colourManager.get().getColourFromString((String) arg2,
72 71
                     null));
73 72
         }
74 73
 
75
-        /** {@inheritDoc} */
76 74
         @Override
77 75
         public Class<?> appliesTo() {
78 76
             return Colour.class;
79 77
         }
80 78
 
81
-        /** {@inheritDoc} */
82 79
         @Override
83 80
         public String getName() {
84 81
             return "equals";
85 82
         }
86 83
 
87
-        /** {@inheritDoc} */
88 84
         @Override
89 85
         public String name() {
90 86
             return "COLOUR_EQUALS";
@@ -95,25 +91,21 @@ public class ColourActionComparison {
95 91
     /** Checks if the colour is not the same as another colour. */
96 92
     private class NotEquals implements ActionComparison {
97 93
 
98
-        /** {@inheritDoc} */
99 94
         @Override
100 95
         public boolean test(final Object arg1, final Object arg2) {
101 96
             return !equalsComparison.test(arg1, arg2);
102 97
         }
103 98
 
104
-        /** {@inheritDoc} */
105 99
         @Override
106 100
         public Class<?> appliesTo() {
107 101
             return Colour.class;
108 102
         }
109 103
 
110
-        /** {@inheritDoc} */
111 104
         @Override
112 105
         public String getName() {
113 106
             return "does not equal";
114 107
         }
115 108
 
116
-        /** {@inheritDoc} */
117 109
         @Override
118 110
         public String name() {
119 111
             return "COLOUR_NEQUALS";

+ 0
- 2
src/com/dmdirc/actions/ConditionTree.java Целия файл

@@ -135,14 +135,12 @@ public final class ConditionTree {
135 135
         }
136 136
     }
137 137
 
138
-    /** {@inheritDoc} */
139 138
     @Override
140 139
     public boolean equals(final Object obj) {
141 140
         return obj instanceof ConditionTree
142 141
                 && toString().equals(((ConditionTree) obj).toString());
143 142
     }
144 143
 
145
-    /** {@inheritDoc} */
146 144
     @Override
147 145
     public int hashCode() {
148 146
         return toString().hashCode();

+ 0
- 6
src/com/dmdirc/actions/ConditionTreeFactory.java Целия файл

@@ -83,13 +83,11 @@ public abstract class ConditionTreeFactory {
83 83
      */
84 84
     public static class ConjunctionFactory extends ConditionTreeFactory {
85 85
 
86
-        /** {@inheritDoc} */
87 86
         @Override
88 87
         public ConditionTree getConditionTree(final int args) {
89 88
             return ConditionTree.createConjunction(args);
90 89
         }
91 90
 
92
-        /** {@inheritDoc} */
93 91
         @Override
94 92
         public ConditionTreeFactoryType getType() {
95 93
             return ConditionTreeFactoryType.CONJUNCTION;
@@ -102,13 +100,11 @@ public abstract class ConditionTreeFactory {
102 100
      */
103 101
     public static class DisjunctionFactory extends ConditionTreeFactory {
104 102
 
105
-        /** {@inheritDoc} */
106 103
         @Override
107 104
         public ConditionTree getConditionTree(final int args) {
108 105
             return ConditionTree.createDisjunction(args);
109 106
         }
110 107
 
111
-        /** {@inheritDoc} */
112 108
         @Override
113 109
         public ConditionTreeFactoryType getType() {
114 110
             return ConditionTreeFactoryType.DISJUNCTION;
@@ -133,13 +129,11 @@ public abstract class ConditionTreeFactory {
133 129
             this.tree = tree;
134 130
         }
135 131
 
136
-        /** {@inheritDoc} */
137 132
         @Override
138 133
         public ConditionTree getConditionTree(final int args) {
139 134
             return tree;
140 135
         }
141 136
 
142
-        /** {@inheritDoc} */
143 137
         @Override
144 138
         public ConditionTreeFactoryType getType() {
145 139
             return ConditionTreeFactoryType.CUSTOM;

+ 178
- 197
src/com/dmdirc/actions/CoreActionComparison.java Целия файл

@@ -34,220 +34,201 @@ public enum CoreActionComparison implements ActionComparison {
34 34
 
35 35
     /** Compares a string to another using a regular expression. */
36 36
     STRING_REGEX {
37
-        /** {@inheritDoc} */
38
-        @Override
39
-        public boolean test(final Object arg1, final Object arg2) {
40
-            try {
41
-                return ((String) arg1).matches((String) arg2);
42
-            } catch (PatternSyntaxException pse) {
43
-                return false;
44
-            }
45
-        }
46
-
47
-        /** {@inheritDoc} */
48
-        @Override
49
-        public Class<?> appliesTo() {
50
-            return String.class;
51
-        }
52
-
53
-        /** {@inheritDoc} */
54
-        @Override
55
-        public String getName() {
56
-            return "matches regex";
57
-        }
58
-    },
37
+
38
+                @Override
39
+                public boolean test(final Object arg1, final Object arg2) {
40
+                    try {
41
+                        return ((String) arg1).matches((String) arg2);
42
+                    } catch (PatternSyntaxException pse) {
43
+                        return false;
44
+                    }
45
+                }
46
+
47
+                @Override
48
+                public Class<?> appliesTo() {
49
+                    return String.class;
50
+                }
51
+
52
+                @Override
53
+                public String getName() {
54
+                    return "matches regex";
55
+                }
56
+            },
59 57
     /** Compares if two strings content are
60 58
      * the same, case insensitive. */
61 59
     STRING_EQUALS {
62
-        /** {@inheritDoc} */
63
-        @Override
64
-        public boolean test(final Object arg1, final Object arg2) {
65
-            return ((String) arg1).equalsIgnoreCase((String) arg2);
66
-        }
67
-
68
-        /** {@inheritDoc} */
69
-        @Override
70
-        public Class<?> appliesTo() {
71
-            return String.class;
72
-        }
73
-
74
-        /** {@inheritDoc} */
75
-        @Override
76
-        public String getName() {
77
-            return "equals";
78
-        }
79
-    },
80
-    /** Compares if two strings content aren't the same, case insensitive. */
60
+
61
+                @Override
62
+                public boolean test(final Object arg1, final Object arg2) {
63
+                    return ((String) arg1).equalsIgnoreCase((String) arg2);
64
+                }
65
+
66
+                @Override
67
+                public Class<?> appliesTo() {
68
+                    return String.class;
69
+                }
70
+
71
+                @Override
72
+                public String getName() {
73
+                    return "equals";
74
+                }
75
+            },
76
+    /** Compares if two strings content aren't the same, case
77
+     * insensitive. */
81 78
     STRING_NEQUALS {
82
-        /** {@inheritDoc} */
83
-        @Override
84
-        public boolean test(final Object arg1, final Object arg2) {
85
-            return !STRING_EQUALS.test(arg1, arg2);
86
-        }
87
-
88
-        /** {@inheritDoc} */
89
-        @Override
90
-        public Class<?> appliesTo() {
91
-            return String.class;
92
-        }
93
-
94
-        /** {@inheritDoc} */
95
-        @Override
96
-        public String getName() {
97
-            return "does not equal";
98
-        }
99
-    },
79
+
80
+                @Override
81
+                public boolean test(final Object arg1, final Object arg2) {
82
+                    return !STRING_EQUALS.test(arg1, arg2);
83
+                }
84
+
85
+                @Override
86
+                public Class<?> appliesTo() {
87
+                    return String.class;
88
+                }
89
+
90
+                @Override
91
+                public String getName() {
92
+                    return "does not equal";
93
+                }
94
+            },
100 95
     /** Checks if the string starts with another strings. */
101 96
     STRING_STARTSWITH {
102
-        /** {@inheritDoc} */
103
-        @Override
104
-        public boolean test(final Object arg1, final Object arg2) {
105
-            return ((String) arg1).startsWith((String) arg2);
106
-        }
107
-
108
-        /** {@inheritDoc} */
109
-        @Override
110
-        public Class<?> appliesTo() {
111
-            return String.class;
112
-        }
113
-
114
-        /** {@inheritDoc} */
115
-        @Override
116
-        public String getName() {
117
-            return "starts with";
118
-        }
119
-    },
97
+
98
+                @Override
99
+                public boolean test(final Object arg1, final Object arg2) {
100
+                    return ((String) arg1).startsWith((String) arg2);
101
+                }
102
+
103
+                @Override
104
+                public Class<?> appliesTo() {
105
+                    return String.class;
106
+                }
107
+
108
+                @Override
109
+                public String getName() {
110
+                    return "starts with";
111
+                }
112
+            },
120 113
     /** Checks if the string containts another string. */
121 114
     STRING_CONTAINS {
122
-        /** {@inheritDoc} */
123
-        @Override
124
-        public boolean test(final Object arg1, final Object arg2) {
125
-            return ((String) arg1).indexOf((String) arg2) != -1;
126
-        }
127
-
128
-        /** {@inheritDoc} */
129
-        @Override
130
-        public Class<?> appliesTo() {
131
-            return String.class;
132
-        }
133
-
134
-        /** {@inheritDoc} */
135
-        @Override
136
-        public String getName() {
137
-            return "contains";
138
-        }
139
-    },
115
+
116
+                @Override
117
+                public boolean test(final Object arg1, final Object arg2) {
118
+                    return ((String) arg1).indexOf((String) arg2) != -1;
119
+                }
120
+
121
+                @Override
122
+                public Class<?> appliesTo() {
123
+                    return String.class;
124
+                }
125
+
126
+                @Override
127
+                public String getName() {
128
+                    return "contains";
129
+                }
130
+            },
140 131
     /** Checks if the string doesn't containt another string. */
141 132
     STRING_NCONTAINS {
142
-        /** {@inheritDoc} */
143
-        @Override
144
-        public boolean test(final Object arg1, final Object arg2) {
145
-            return ((String) arg1).indexOf((String) arg2) == -1;
146
-        }
147
-
148
-        /** {@inheritDoc} */
149
-        @Override
150
-        public Class<?> appliesTo() {
151
-            return String.class;
152
-        }
153
-
154
-        /** {@inheritDoc} */
155
-        @Override
156
-        public String getName() {
157
-            return "doesn't contain";
158
-        }
159
-    },
133
+
134
+                @Override
135
+                public boolean test(final Object arg1, final Object arg2) {
136
+                    return ((String) arg1).indexOf((String) arg2) == -1;
137
+                }
138
+
139
+                @Override
140
+                public Class<?> appliesTo() {
141
+                    return String.class;
142
+                }
143
+
144
+                @Override
145
+                public String getName() {
146
+                    return "doesn't contain";
147
+                }
148
+            },
160 149
     /** Checks if two boolean values are equal. */
161 150
     BOOL_IS {
162
-        /** {@inheritDoc} */
163
-        @Override
164
-        public boolean test(final Object arg1, final Object arg2) {
165
-            return ((Boolean) arg1).equals(Boolean.valueOf((String) arg2));
166
-        }
167
-
168
-        /** {@inheritDoc} */
169
-        @Override
170
-        public Class<?> appliesTo() {
171
-            return Boolean.class;
172
-        }
173
-
174
-        /** {@inheritDoc} */
175
-        @Override
176
-        public String getName() {
177
-            return "is";
178
-        }
179
-    },
151
+
152
+                @Override
153
+                public boolean test(final Object arg1, final Object arg2) {
154
+                    return ((Boolean) arg1).equals(Boolean.valueOf((String) arg2));
155
+                }
156
+
157
+                @Override
158
+                public Class<?> appliesTo() {
159
+                    return Boolean.class;
160
+                }
161
+
162
+                @Override
163
+                public String getName() {
164
+                    return "is";
165
+                }
166
+            },
180 167
     /** Checks if the int is equals to another int. */
181 168
     INT_EQUALS {
182
-        /** {@inheritDoc} */
183
-        @Override
184
-        public boolean test(final Object arg1, final Object arg2) {
185
-            try {
186
-                return 0 == ((Integer) arg1).compareTo(Integer.parseInt((String) arg2));
187
-            } catch (NumberFormatException ex) {
188
-                return false;
189
-            }
190
-        }
191
-
192
-        /** {@inheritDoc} */
193
-        @Override
194
-        public Class<?> appliesTo() {
195
-            return Integer.class;
196
-        }
197
-
198
-        /** {@inheritDoc} */
199
-        @Override
200
-        public String getName() {
201
-            return "equals";
202
-        }
203
-    },
169
+
170
+                @Override
171
+                public boolean test(final Object arg1, final Object arg2) {
172
+                    try {
173
+                        return 0 == ((Integer) arg1).compareTo(Integer.parseInt((String) arg2));
174
+                    } catch (NumberFormatException ex) {
175
+                        return false;
176
+                    }
177
+                }
178
+
179
+                @Override
180
+                public Class<?> appliesTo() {
181
+                    return Integer.class;
182
+                }
183
+
184
+                @Override
185
+                public String getName() {
186
+                    return "equals";
187
+                }
188
+            },
204 189
     /** Checks if the int is larger than another int. */
205 190
     INT_GREATER {
206
-        /** {@inheritDoc} */
207
-        @Override
208
-        public boolean test(final Object arg1, final Object arg2) {
209
-            try {
210
-                return 0 < ((Integer) arg1).compareTo(Integer.parseInt((String) arg2));
211
-            } catch (NumberFormatException ex) {
212
-                return false;
213
-            }
214
-        }
215
-
216
-        /** {@inheritDoc} */
217
-        @Override
218
-        public Class<?> appliesTo() {
219
-            return Integer.class;
220
-        }
221
-
222
-        /** {@inheritDoc} */
223
-        @Override
224
-        public String getName() {
225
-            return "is greater than";
226
-        }
227
-    },
191
+
192
+                @Override
193
+                public boolean test(final Object arg1, final Object arg2) {
194
+                    try {
195
+                        return 0 < ((Integer) arg1).compareTo(Integer.parseInt((String) arg2));
196
+                    } catch (NumberFormatException ex) {
197
+                        return false;
198
+                    }
199
+                }
200
+
201
+                @Override
202
+                public Class<?> appliesTo() {
203
+                    return Integer.class;
204
+                }
205
+
206
+                @Override
207
+                public String getName() {
208
+                    return "is greater than";
209
+                }
210
+            },
228 211
     /** Checks if the int is smaller than another int. */
229 212
     INT_LESS {
230
-        /** {@inheritDoc} */
231
-        @Override
232
-        public boolean test(final Object arg1, final Object arg2) {
233
-            try {
234
-                return 0 > ((Integer) arg1).compareTo(Integer.parseInt((String) arg2));
235
-            } catch (NumberFormatException ex) {
236
-                return false;
237
-            }
238
-        }
239
-
240
-        /** {@inheritDoc} */
241
-        @Override
242
-        public Class<?> appliesTo() {
243
-            return Integer.class;
244
-        }
245
-
246
-        /** {@inheritDoc} */
247
-        @Override
248
-        public String getName() {
249
-            return "is less than";
250
-        }
251
-    };
213
+
214
+                @Override
215
+                public boolean test(final Object arg1, final Object arg2) {
216
+                    try {
217
+                        return 0 > ((Integer) arg1).compareTo(Integer.parseInt((String) arg2));
218
+                    } catch (NumberFormatException ex) {
219
+                        return false;
220
+                    }
221
+                }
222
+
223
+                @Override
224
+                public Class<?> appliesTo() {
225
+                    return Integer.class;
226
+                }
227
+
228
+                @Override
229
+                public String getName() {
230
+                    return "is less than";
231
+                }
232
+            };
252 233
 
253 234
 }

+ 699
- 788
src/com/dmdirc/actions/CoreActionComponent.java
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 0
- 2
src/com/dmdirc/actions/CoreActionType.java Целия файл

@@ -246,13 +246,11 @@ public enum CoreActionType implements ActionType {
246 246
         this.name = name;
247 247
     }
248 248
 
249
-    /** {@inheritDoc} */
250 249
     @Override
251 250
     public ActionMetaType getType() {
252 251
         return type;
253 252
     }
254 253
 
255
-    /** {@inheritDoc} */
256 254
     @Override
257 255
     public String getName() {
258 256
         return name;

+ 0
- 1
src/com/dmdirc/actions/internal/WhoisNumericFormatter.java Целия файл

@@ -63,7 +63,6 @@ public class WhoisNumericFormatter implements ActionListener {
63 63
                 CoreActionType.SERVER_DISCONNECTED);
64 64
     }
65 65
 
66
-    /** {@inheritDoc} */
67 66
     @Override
68 67
     public void processEvent(final ActionType type, final StringBuffer format,
69 68
             final Object... arguments) {

+ 0
- 4
src/com/dmdirc/actions/metatypes/ActionEvents.java Целия файл

@@ -50,25 +50,21 @@ public enum ActionEvents implements ActionMetaType {
50 50
         this.argTypes = argTypes;
51 51
     }
52 52
 
53
-    /** {@inheritDoc} */
54 53
     @Override
55 54
     public int getArity() {
56 55
         return argNames.length;
57 56
     }
58 57
 
59
-    /** {@inheritDoc} */
60 58
     @Override
61 59
     public Class[] getArgTypes() {
62 60
         return argTypes;
63 61
     }
64 62
 
65
-    /** {@inheritDoc} */
66 63
     @Override
67 64
     public String[] getArgNames() {
68 65
         return argNames;
69 66
     }
70 67
 
71
-    /** {@inheritDoc} */
72 68
     @Override
73 69
     public String getGroup() {
74 70
         return "Action Events";

+ 5
- 9
src/com/dmdirc/actions/metatypes/ChannelEvents.java Целия файл

@@ -42,23 +42,23 @@ public enum ChannelEvents implements ActionMetaType {
42 42
     CHANNEL_TOPICEVENT(new String[]{"channel", "topic"}, Channel.class, Topic.class),
43 43
     /** Channel CTCP type. */
44 44
     CHANNEL_CTCP(new String[]{"channel", "user", "type", "content"}, Channel.class,
45
-    ChannelClientInfo.class, String.class, String.class),
45
+            ChannelClientInfo.class, String.class, String.class),
46 46
     /** Channel event with source. */
47 47
     CHANNEL_SOURCED_EVENT(new String[]{"channel", "user"}, Channel.class, ChannelClientInfo.class),
48 48
     /** Chanel event with source and argument. */
49 49
     CHANNEL_SOURCED_EVENT_WITH_ARG(new String[]{"channel", "user", "message"}, Channel.class,
50
-    ChannelClientInfo.class, String.class),
50
+            ChannelClientInfo.class, String.class),
51 51
     /** Chanel event with source and nickname. */
52 52
     CHANNEL_NICKEVENT(new String[]{"channel", "user", "old nickname"}, Channel.class,
53
-    ChannelClientInfo.class, String.class),
53
+            ChannelClientInfo.class, String.class),
54 54
     /** Chanel event with source, message and mode character argument.
55 55
      *
56 56
      * @since 0.6.3m2 */
57 57
     CHANNEL_SOURCED_EVENT_WITH_CHARARG(new String[]{"channel", "user", "mode", "message"},
58
-    Channel.class, ChannelClientInfo.class, String.class, String.class),
58
+            Channel.class, ChannelClientInfo.class, String.class, String.class),
59 59
     /** Channel event with source and victim. */
60 60
     CHANNEL_SOURCED_EVENT_WITH_VICTIM(new String[]{"channel", "user", "victim", "message"},
61
-    Channel.class, ChannelClientInfo.class, ChannelClientInfo.class, String.class);
61
+            Channel.class, ChannelClientInfo.class, ChannelClientInfo.class, String.class);
62 62
     /** The names of the arguments for this meta type. */
63 63
     private String[] argNames;
64 64
     /** The classes of the arguments for this meta type. */
@@ -75,25 +75,21 @@ public enum ChannelEvents implements ActionMetaType {
75 75
         this.argTypes = argTypes;
76 76
     }
77 77
 
78
-    /** {@inheritDoc} */
79 78
     @Override
80 79
     public int getArity() {
81 80
         return argNames.length;
82 81
     }
83 82
 
84
-    /** {@inheritDoc} */
85 83
     @Override
86 84
     public Class[] getArgTypes() {
87 85
         return argTypes;
88 86
     }
89 87
 
90
-    /** {@inheritDoc} */
91 88
     @Override
92 89
     public String[] getArgNames() {
93 90
         return argNames;
94 91
     }
95 92
 
96
-    /** {@inheritDoc} */
97 93
     @Override
98 94
     public String getGroup() {
99 95
         return "Channel Events";

+ 5
- 9
src/com/dmdirc/actions/metatypes/ClientEvents.java Целия файл

@@ -46,24 +46,24 @@ public enum ClientEvents implements ActionMetaType {
46 46
     WINDOW_EVENT_WITH_MESSAGE(new String[]{"window", "message"}, FrameContainer.class, String.class),
47 47
     /** A popup-related event. */
48 48
     POPUP_EVENT(new String[]{"popup type", "popup", "configuration provider"}, PopupType.class,
49
-    PopupMenu.class, AggregateConfigProvider.class),
49
+            PopupMenu.class, AggregateConfigProvider.class),
50 50
     /** Client event type, with a key argument. */
51 51
     CLIENT_EVENT_WITH_KEY(new String[]{"key event"}, KeyStroke.class),
52 52
     /** Client event with an origin and
53 53
      * editable buffer. */
54 54
     CLIENT_EVENT_WITH_BUFFER(new String[]{"origin", "buffer"}, FrameContainer.class,
55
-    StringBuffer.class),
55
+            StringBuffer.class),
56 56
     /** Client event with preferences manager. */
57 57
     CLIENT_EVENT_WITH_PREFS(new String[]{"preferences manager"}, PreferencesDialogModel.class),
58 58
     /** Client event with preferences category. */
59 59
     CLIENT_EVENT_WITH_PREFS_CAT(new String[]{"preferences category", "is server"},
60
-    PreferencesCategory.class, Boolean.class),
60
+            PreferencesCategory.class, Boolean.class),
61 61
     /** Client event with a styled doc. */
62 62
     CLIENT_EVENT_WITH_STYLE(new String[]{"styled document", "start offset", "length"},
63
-    StyledDocument.class, Integer.class, Integer.class),
63
+            StyledDocument.class, Integer.class, Integer.class),
64 64
     /** Unknown command event type. */
65 65
     UNKNOWN_COMMAND(new String[]{"source", "command", "arguments"}, FrameContainer.class,
66
-    String.class, String[].class);
66
+            String.class, String[].class);
67 67
     /** The names of the arguments for this meta type. */
68 68
     private String[] argNames;
69 69
     /** The classes of the arguments for this meta type. */
@@ -80,25 +80,21 @@ public enum ClientEvents implements ActionMetaType {
80 80
         this.argTypes = argTypes;
81 81
     }
82 82
 
83
-    /** {@inheritDoc} */
84 83
     @Override
85 84
     public int getArity() {
86 85
         return argNames.length;
87 86
     }
88 87
 
89
-    /** {@inheritDoc} */
90 88
     @Override
91 89
     public Class[] getArgTypes() {
92 90
         return argTypes;
93 91
     }
94 92
 
95
-    /** {@inheritDoc} */
96 93
     @Override
97 94
     public String[] getArgNames() {
98 95
         return argNames;
99 96
     }
100 97
 
101
-    /** {@inheritDoc} */
102 98
     @Override
103 99
     public String getGroup() {
104 100
         return "General Events";

+ 0
- 4
src/com/dmdirc/actions/metatypes/LinkEvents.java Целия файл

@@ -52,25 +52,21 @@ public enum LinkEvents implements ActionMetaType {
52 52
         this.argTypes = argTypes;
53 53
     }
54 54
 
55
-    /** {@inheritDoc} */
56 55
     @Override
57 56
     public int getArity() {
58 57
         return argNames.length;
59 58
     }
60 59
 
61
-    /** {@inheritDoc} */
62 60
     @Override
63 61
     public Class[] getArgTypes() {
64 62
         return argTypes;
65 63
     }
66 64
 
67
-    /** {@inheritDoc} */
68 65
     @Override
69 66
     public String[] getArgNames() {
70 67
         return argNames;
71 68
     }
72 69
 
73
-    /** {@inheritDoc} */
74 70
     @Override
75 71
     public String getGroup() {
76 72
         return "Link Events";

+ 0
- 4
src/com/dmdirc/actions/metatypes/PluginEvents.java Целия файл

@@ -48,25 +48,21 @@ public enum PluginEvents implements ActionMetaType {
48 48
         this.argTypes = argTypes;
49 49
     }
50 50
 
51
-    /** {@inheritDoc} */
52 51
     @Override
53 52
     public int getArity() {
54 53
         return argNames.length;
55 54
     }
56 55
 
57
-    /** {@inheritDoc} */
58 56
     @Override
59 57
     public Class[] getArgTypes() {
60 58
         return argTypes;
61 59
     }
62 60
 
63
-    /** {@inheritDoc} */
64 61
     @Override
65 62
     public String[] getArgNames() {
66 63
         return argNames;
67 64
     }
68 65
 
69
-    /** {@inheritDoc} */
70 66
     @Override
71 67
     public String getGroup() {
72 68
         return "Plugin Events";

+ 1
- 5
src/com/dmdirc/actions/metatypes/QueryEvents.java Целия файл

@@ -37,7 +37,7 @@ public enum QueryEvents implements ActionMetaType {
37 37
     QUERY_EVENT_WITH_ARG(new String[]{"query", "message"}, Query.class, String.class),
38 38
     /** Query event with argument and source. */
39 39
     QUERY_SOURCED_EVENT_WITH_ARG(new String[]{"query", "source", "message"}, Query.class,
40
-    ClientInfo.class, String.class);
40
+            ClientInfo.class, String.class);
41 41
     /** The names of the arguments for this meta type. */
42 42
     private String[] argNames;
43 43
     /** The classes of the arguments for this meta type. */
@@ -54,25 +54,21 @@ public enum QueryEvents implements ActionMetaType {
54 54
         this.argTypes = argTypes;
55 55
     }
56 56
 
57
-    /** {@inheritDoc} */
58 57
     @Override
59 58
     public int getArity() {
60 59
         return argNames.length;
61 60
     }
62 61
 
63
-    /** {@inheritDoc} */
64 62
     @Override
65 63
     public Class[] getArgTypes() {
66 64
         return argTypes;
67 65
     }
68 66
 
69
-    /** {@inheritDoc} */
70 67
     @Override
71 68
     public String[] getArgNames() {
72 69
         return argNames;
73 70
     }
74 71
 
75
-    /** {@inheritDoc} */
76 72
     @Override
77 73
     public String getGroup() {
78 74
         return "Query Events";

+ 6
- 10
src/com/dmdirc/actions/metatypes/ServerEvents.java Целия файл

@@ -35,24 +35,24 @@ public enum ServerEvents implements ActionMetaType {
35 35
     SERVER_PING(new String[]{"server", "ping"}, Connection.class, Long.class),
36 36
     /** Server numeric event type. */
37 37
     SERVER_NUMERIC(new String[]{"server", "numeric", "arguments"}, Connection.class, Integer.class,
38
-    String[].class),
38
+            String[].class),
39 39
     /** Server event with argument. */
40 40
     SERVER_EVENT_WITH_ARG(new String[]{"server", "message"}, Connection.class, String.class),
41 41
     /** Server nick change. */
42 42
     SERVER_NICKCHANGE(new String[]{"server", "old nickname", "new nickname"}, Connection.class,
43
-    String.class, String.class),
43
+            String.class, String.class),
44 44
     /** Server event, with source and argument. */
45 45
     SERVER_SOURCED_EVENT_WITH_ARG(new String[]{"server", "user", "message"}, Connection.class,
46
-    ClientInfo.class, String.class),
46
+            ClientInfo.class, String.class),
47 47
     /** Server CTCP event. */
48 48
     SERVER_CTCP_EVENT(new String[]{"server", "user", "type", "content"}, Connection.class,
49
-    ClientInfo.class, String.class, String.class),
49
+            ClientInfo.class, String.class, String.class),
50 50
     /** Server event with argument. */
51 51
     SERVER_UNKNOWN_EVENT(new String[]{"server", "source", "target", "message"}, Connection.class,
52
-    String.class, String.class, String.class),
52
+            String.class, String.class, String.class),
53 53
     /** Server invite event. */
54 54
     SERVER_INVITE(new String[]{"server", "source", "channel"}, Connection.class, ClientInfo.class,
55
-    String.class),
55
+            String.class),
56 56
     /** Server event type. */
57 57
     SERVER_EVENT(new String[]{"server"}, Connection.class);
58 58
     /** The names of the arguments for this meta type. */
@@ -71,25 +71,21 @@ public enum ServerEvents implements ActionMetaType {
71 71
         this.argTypes = argTypes;
72 72
     }
73 73
 
74
-    /** {@inheritDoc} */
75 74
     @Override
76 75
     public int getArity() {
77 76
         return argNames.length;
78 77
     }
79 78
 
80
-    /** {@inheritDoc} */
81 79
     @Override
82 80
     public Class[] getArgTypes() {
83 81
         return argTypes;
84 82
     }
85 83
 
86
-    /** {@inheritDoc} */
87 84
     @Override
88 85
     public String[] getArgNames() {
89 86
         return argNames;
90 87
     }
91 88
 
92
-    /** {@inheritDoc} */
93 89
     @Override
94 90
     public String getGroup() {
95 91
         return "Server/Private Events";

+ 20
- 13
src/com/dmdirc/actions/package-info.java Целия файл

@@ -29,9 +29,10 @@
29 29
  * {@link com.dmdirc.interfaces.actions.ActionType}, which has both a user-friendly name and an
30 30
  * internal name, as well as a meta-type which describes the arguments it takes.
31 31
  *
32
- * <p>For example, when a message on a channel is received, the client looks for actions that
33
- * respond to the {@link com.dmdirc.actions.CoreActionType#CHANNEL_MESSAGE} action type. The channel
34
- * message type has a meta-type of
32
+ * <p>
33
+ * For example, when a message on a channel is received, the client looks for actions that respond
34
+ * to the {@link com.dmdirc.actions.CoreActionType#CHANNEL_MESSAGE} action type. The channel message
35
+ * type has a meta-type of
35 36
  * {@link com.dmdirc.actions.metatypes.ChannelEvents#CHANNEL_SOURCED_EVENT_WITH_ARG} which says that
36 37
  * the event will come with three arguments: a channel, a user, and a message. It also defines the
37 38
  * types of those arguments ({@link com.dmdirc.Channel},
@@ -44,7 +45,8 @@
44 45
  * rules concerning the state of the client, or the event's arguments. There are two types of
45 46
  * condition: component-based and string-based.
46 47
  *
47
- * <p>Component-based conditions start off with one of the action's arguments, and then apply one or
48
+ * <p>
49
+ * Component-based conditions start off with one of the action's arguments, and then apply one or
48 50
  * more components to it to get some useful property. Components all implement
49 51
  * {@link com.dmdirc.interfaces.actions.ActionComponent} and essentially transform one object into
50 52
  * another, somehow. A component may take a {@link com.dmdirc.Channel} object and return that
@@ -52,22 +54,26 @@
52 54
  * (these components are implemented in {@link com.dmdirc.actions.CoreActionComponent#CHANNEL_NAME}
53 55
  * and {@link com.dmdirc.actions.CoreActionComponent#STRING_LENGTH}).
54 56
  *
55
- * <p>A component based action could be as simple as "the message's content", or as complicated as
56
- * "the channel's server's network name's length". These chains of components are handled by an
57
+ * <p>
58
+ * A component based action could be as simple as "the message's content", or as complicated as "the
59
+ * channel's server's network name's length". These chains of components are handled by an
57 60
  * {@link ActionComponentChain}.
58 61
  *
59
- * <p>String-based conditions simply start off with a plain string, which is subject to substitution
60
- * as described below.
62
+ * <p>
63
+ * String-based conditions simply start off with a plain string, which is subject to substitution as
64
+ * described below.
61 65
  *
62
- * <p>Action conditions also specify a comparison. These define various methods of comparing
63
- * objects, such as checking two strings are equal
66
+ * <p>
67
+ * Action conditions also specify a comparison. These define various methods of comparing objects,
68
+ * such as checking two strings are equal
64 69
  * ({@link com.dmdirc.actions.CoreActionComparison#STRING_EQUALS}) or that an integer is greater
65 70
  * than a pre-defined value ({@link com.dmdirc.actions.CoreActionComparison#INT_GREATER}). All
66 71
  * comparisons implement {@link com.dmdirc.interfaces.actions.ActionComparison}. The second argument
67 72
  * is always a string provided by the user.
68 73
  *
69
- * <p>Finally, if more than one condition is present the user can decide how they are matched. The
70
- * two most common and straight-forward options are a conjunction (where all the conditions must be
74
+ * <p>
75
+ * Finally, if more than one condition is present the user can decide how they are matched. The two
76
+ * most common and straight-forward options are a conjunction (where all the conditions must be
71 77
  * true) and a disjunction (where one of the conditions must be true). Users can also specify their
72 78
  * own, more complicated, rules such as "condition 1 AND (condition 2 OR condition 3)". These are
73 79
  * all expressed as a {@link ConditionTree}.
@@ -81,7 +87,8 @@
81 87
  * message the user had entered the command {@code /part}, then the client would part the channel
82 88
  * where the message was received.
83 89
  *
84
- * <p>Commands and condition arguments are subject to action substitutions. This allows users to
90
+ * <p>
91
+ * Commands and condition arguments are subject to action substitutions. This allows users to
85 92
  * include various dynamic properties in their responses or conditions. Substitutions are prefixed
86 93
  * with a {@code $} character, and come in several varieties:
87 94
  *

+ 0
- 1
src/com/dmdirc/actions/validators/ActionNameValidator.java Целия файл

@@ -55,7 +55,6 @@ public class ActionNameValidator implements Validator<String> {
55 55
         this.originalName = originalName;
56 56
     }
57 57
 
58
-    /** {@inheritDoc} */
59 58
     @Override
60 59
     public ValidationResponse validate(final String object) {
61 60
         final List<Action> actions = group.getActions();

+ 0
- 1
src/com/dmdirc/actions/validators/ConditionRuleValidator.java Целия файл

@@ -53,7 +53,6 @@ public class ConditionRuleValidator implements Validator<String> {
53 53
         this.args = args;
54 54
     }
55 55
 
56
-    /** {@inheritDoc} */
57 56
     @Override
58 57
     public ValidationResponse validate(final String object) {
59 58
         final ConditionTree tree = ConditionTree.parseString(object);

+ 0
- 4
src/com/dmdirc/actions/wrappers/AliasWrapper.java Целия файл

@@ -80,7 +80,6 @@ public class AliasWrapper extends ActionGroup {
80 80
         return new ArrayList<>(aliases);
81 81
     }
82 82
 
83
-    /** {@inheritDoc} */
84 83
     @Override
85 84
     public void add(final Action action) {
86 85
         if (action.getTriggers()[0].equals(CoreActionType.UNKNOWN_COMMAND)) {
@@ -107,7 +106,6 @@ public class AliasWrapper extends ActionGroup {
107 106
         }
108 107
     }
109 108
 
110
-    /** {@inheritDoc} */
111 109
     @Override
112 110
     public void remove(final Action action) {
113 111
         if (action.getTriggers()[0].equals(CoreActionType.UNKNOWN_COMMAND)) {
@@ -146,13 +144,11 @@ public class AliasWrapper extends ActionGroup {
146 144
         return null;
147 145
     }
148 146
 
149
-    /** {@inheritDoc} */
150 147
     @Override
151 148
     public boolean isDelible() {
152 149
         return false;
153 150
     }
154 151
 
155
-    /** {@inheritDoc} */
156 152
     @Override
157 153
     public String getDescription() {
158 154
         return "Aliases allow you to create new commands that invoke one or "

+ 0
- 1
src/com/dmdirc/actions/wrappers/PerformType.java Целия файл

@@ -45,7 +45,6 @@ public enum PerformType {
45 45
         friendlyName = name;
46 46
     }
47 47
 
48
-    /** {@inheritDoc} */
49 48
     @Override
50 49
     public String toString() {
51 50
         return friendlyName;

+ 2
- 9
src/com/dmdirc/actions/wrappers/PerformWrapper.java Целия файл

@@ -67,7 +67,6 @@ public class PerformWrapper extends ActionGroup {
67 67
         this.actionFactory = actionFactory;
68 68
     }
69 69
 
70
-    /** {@inheritDoc} */
71 70
     @Override
72 71
     public void add(final Action action) {
73 72
         if (action.getTriggers().length != 1) {
@@ -92,7 +91,6 @@ public class PerformWrapper extends ActionGroup {
92 91
         }
93 92
     }
94 93
 
95
-    /** {@inheritDoc} */
96 94
     @Override
97 95
     public void deleteAction(final Action action) {
98 96
         synchronized (this) {
@@ -226,8 +224,7 @@ public class PerformWrapper extends ActionGroup {
226 224
     private Action createAction(final String server, final String network,
227 225
             final String profile) {
228 226
         final List<ActionCondition> conditions = new ArrayList<>();
229
-        final CoreActionComponent component =
230
-                server.isEmpty() ? CoreActionComponent.SERVER_NETWORK
227
+        final CoreActionComponent component = server.isEmpty() ? CoreActionComponent.SERVER_NETWORK
231 228
                 : CoreActionComponent.SERVER_NAME;
232 229
 
233 230
         conditions.add(new ActionCondition(0, component,
@@ -236,7 +233,7 @@ public class PerformWrapper extends ActionGroup {
236 233
         if (profile != null) {
237 234
             conditions.add(new ActionCondition(0,
238 235
                     new ActionComponentChain(Connection.class, PP_COMP_NAME, ActionManager.
239
-                    getActionManager()),
236
+                            getActionManager()),
240 237
                     CoreActionComparison.STRING_EQUALS, profile));
241 238
         }
242 239
 
@@ -283,13 +280,11 @@ public class PerformWrapper extends ActionGroup {
283 280
         return null;
284 281
     }
285 282
 
286
-    /** {@inheritDoc} */
287 283
     @Override
288 284
     public boolean isDelible() {
289 285
         return false;
290 286
     }
291 287
 
292
-    /** {@inheritDoc} */
293 288
     @Override
294 289
     public String getDescription() {
295 290
         return "Performs allow you to automatically execute commands when"
@@ -374,7 +369,6 @@ public class PerformWrapper extends ActionGroup {
374 369
             return type;
375 370
         }
376 371
 
377
-        /** {@inheritDoc} */
378 372
         @Override
379 373
         public boolean equals(final Object obj) {
380 374
             if (obj == null || getClass() != obj.getClass()) {
@@ -395,7 +389,6 @@ public class PerformWrapper extends ActionGroup {
395 389
             return true;
396 390
         }
397 391
 
398
-        /** {@inheritDoc} */
399 392
         @Override
400 393
         public int hashCode() {
401 394
             int hash = 7;

+ 0
- 1
src/com/dmdirc/commandline/RemoteServer.java Целия файл

@@ -57,7 +57,6 @@ public class RemoteServer implements RemoteInterface {
57 57
         this.serverManager = serverManager;
58 58
     }
59 59
 
60
-    /** {@inheritDoc} */
61 60
     @Override
62 61
     public void connect(final List<URI> addresses) throws RemoteException {
63 62
         for (URI address : addresses) {

+ 5
- 7
src/com/dmdirc/commandparser/CommandInfo.java Целия файл

@@ -38,13 +38,11 @@ public interface CommandInfo {
38 38
      * Returns a string representing the help message for this command.
39 39
      * <p>
40 40
      * The help text should generally be one line, and must start with the name of the command. It
41
-     * should then summarise the arguments of that command, using
42
-     * <code>&lt;angled&gt;</code> brackets for required arguments, and
43
-     * <code>[square]</code> brackets for optional arguments. Where multiple possibilities exist,
44
-     * they are typically separated by a pipe (
45
-     * <code>|</code>), for example:
46
-     * <code>command [--arg1|--arg2]</code>. The usage summary should then be followed by a dash and
47
-     * a brief summary of the purpose of the command.
41
+     * should then summarise the arguments of that command, using <code>&lt;angled&gt;</code>
42
+     * brackets for required arguments, and <code>[square]</code> brackets for optional arguments.
43
+     * Where multiple possibilities exist, they are typically separated by a pipe ( <code>|</code>),
44
+     * for example: <code>command [--arg1|--arg2]</code>. The usage summary should then be followed
45
+     * by a dash and a brief summary of the purpose of the command.
48 46
      * <p>
49 47
      * A typical help message would look similar to:
50 48
      * <p>

+ 0
- 8
src/com/dmdirc/commandparser/CommandManager.java Целия файл

@@ -86,13 +86,11 @@ public class CommandManager implements CommandController {
86 86
         configManager.getBinder().bind(this, CommandManager.class);
87 87
     }
88 88
 
89
-    /** {@inheritDoc} */
90 89
     @Override
91 90
     public void registerCommand(final Command command, final CommandInfo info) {
92 91
         registerCommand(info, command, true);
93 92
     }
94 93
 
95
-    /** {@inheritDoc} */
96 94
     @Override
97 95
     public void unregisterCommand(final CommandInfo info) {
98 96
         registerCommand(info, commands.get(info), false);
@@ -198,7 +196,6 @@ public class CommandManager implements CommandController {
198 196
         }
199 197
     }
200 198
 
201
-    /** {@inheritDoc} */
202 199
     @Override
203 200
     public void loadCommands(final CommandParser parser,
204 201
             final CommandType... supertypes) {
@@ -213,13 +210,11 @@ public class CommandManager implements CommandController {
213 210
         }
214 211
     }
215 212
 
216
-    /** {@inheritDoc} */
217 213
     @Override
218 214
     public Map.Entry<CommandInfo, Command> getCommand(final String name) {
219 215
         return getCommand(null, name);
220 216
     }
221 217
 
222
-    /** {@inheritDoc} */
223 218
     @Override
224 219
     public Map.Entry<CommandInfo, Command> getCommand(final CommandType type,
225 220
             final String name) {
@@ -228,14 +223,12 @@ public class CommandManager implements CommandController {
228 223
         return res.isEmpty() ? null : res.entrySet().iterator().next();
229 224
     }
230 225
 
231
-    /** {@inheritDoc} */
232 226
     @Override
233 227
     public boolean isChannelCommand(final String command) {
234 228
         return getCommand(CommandType.TYPE_CHANNEL, command) != null
235 229
                 || getCommand(CommandType.TYPE_CHAT, command) != null;
236 230
     }
237 231
 
238
-    /** {@inheritDoc} */
239 232
     @Override
240 233
     public List<String> getCommandNames(final CommandType type) {
241 234
         final List<String> res = new ArrayList<>();
@@ -247,7 +240,6 @@ public class CommandManager implements CommandController {
247 240
         return res;
248 241
     }
249 242
 
250
-    /** {@inheritDoc} */
251 243
     @Override
252 244
     public Map<CommandInfo, Command> getCommands(final CommandType type) {
253 245
         return getCommands(type, null);

+ 1
- 3
src/com/dmdirc/commandparser/CommandType.java Целия файл

@@ -32,8 +32,7 @@ public enum CommandType {
32 32
     /** A server command, which only makes sense in the context of a
33 33
      * connection. */
34 34
     TYPE_SERVER,
35
-    /** A chat command, which needs a MessageTarget to make
36
-     * sense. */
35
+    /** A chat command, which needs a MessageTarget to make sense. */
37 36
     TYPE_CHAT,
38 37
     /** A channel command. */
39 38
     TYPE_CHANNEL,
@@ -57,7 +56,6 @@ public enum CommandType {
57 56
         }
58 57
     }
59 58
 
60
-    /** {@inheritDoc} */
61 59
     @Override
62 60
     public String toString() {
63 61
         switch (this) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/channel/Ban.java Целия файл

@@ -59,7 +59,6 @@ public class Ban extends Command implements IntelligentCommand {
59 59
         super(controller);
60 60
     }
61 61
 
62
-    /** {@inheritDoc} */
63 62
     @Override
64 63
     public void execute(final FrameContainer origin,
65 64
             final CommandArguments args, final CommandContext context) {
@@ -81,7 +80,6 @@ public class Ban extends Command implements IntelligentCommand {
81 80
         channel.getChannelInfo().flushModes();
82 81
     }
83 82
 
84
-    /** {@inheritDoc} */
85 83
     @Override
86 84
     public AdditionalTabTargets getSuggestions(final int arg,
87 85
             final IntelligentCommandContext context) {

+ 0
- 1
src/com/dmdirc/commandparser/commands/channel/Cycle.java Целия файл

@@ -57,7 +57,6 @@ public class Cycle extends Command {
57 57
         super(controller);
58 58
     }
59 59
 
60
-    /** {@inheritDoc} */
61 60
     @Override
62 61
     public void execute(final FrameContainer origin,
63 62
             final CommandArguments args, final CommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/channel/Invite.java Целия файл

@@ -62,7 +62,6 @@ public class Invite extends Command implements ExternalCommand {
62 62
         super(controller);
63 63
     }
64 64
 
65
-    /** {@inheritDoc} */
66 65
     @Override
67 66
     public void execute(final FrameContainer origin,
68 67
             final CommandArguments args, final CommandContext context) {
@@ -77,7 +76,6 @@ public class Invite extends Command implements ExternalCommand {
77 76
         }
78 77
     }
79 78
 
80
-    /** {@inheritDoc} */
81 79
     @Override
82 80
     public void execute(final FrameContainer origin, final Server server,
83 81
             final String channel, final boolean isSilent, final CommandArguments args) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/channel/KickReason.java Целия файл

@@ -62,7 +62,6 @@ public class KickReason extends Command implements IntelligentCommand {
62 62
         super(controller);
63 63
     }
64 64
 
65
-    /** {@inheritDoc} */
66 65
     @Override
67 66
     public void execute(final FrameContainer origin,
68 67
             final CommandArguments args, final CommandContext context) {
@@ -84,7 +83,6 @@ public class KickReason extends Command implements IntelligentCommand {
84 83
         }
85 84
     }
86 85
 
87
-    /** {@inheritDoc} */
88 86
     @Override
89 87
     public AdditionalTabTargets getSuggestions(final int arg,
90 88
             final IntelligentCommandContext context) {

+ 0
- 3
src/com/dmdirc/commandparser/commands/channel/Mode.java Целия файл

@@ -64,7 +64,6 @@ public class Mode extends Command implements IntelligentCommand,
64 64
         super(controller);
65 65
     }
66 66
 
67
-    /** {@inheritDoc} */
68 67
     @Override
69 68
     public void execute(final FrameContainer origin,
70 69
             final CommandArguments args, final CommandContext context) {
@@ -79,7 +78,6 @@ public class Mode extends Command implements IntelligentCommand,
79 78
         }
80 79
     }
81 80
 
82
-    /** {@inheritDoc} */
83 81
     @Override
84 82
     public void execute(final FrameContainer origin, final Server server,
85 83
             final String channel, final boolean isSilent, final CommandArguments args) {
@@ -90,7 +88,6 @@ public class Mode extends Command implements IntelligentCommand,
90 88
         }
91 89
     }
92 90
 
93
-    /** {@inheritDoc} */
94 91
     @Override
95 92
     public AdditionalTabTargets getSuggestions(final int arg,
96 93
             final IntelligentCommandContext context) {

+ 0
- 3
src/com/dmdirc/commandparser/commands/channel/Names.java Целия файл

@@ -62,7 +62,6 @@ public class Names extends Command implements IntelligentCommand,
62 62
         super(controller);
63 63
     }
64 64
 
65
-    /** {@inheritDoc} */
66 65
     @Override
67 66
     public void execute(final FrameContainer origin,
68 67
             final CommandArguments args, final CommandContext context) {
@@ -71,14 +70,12 @@ public class Names extends Command implements IntelligentCommand,
71 70
                 + channel.getChannelInfo().getName());
72 71
     }
73 72
 
74
-    /** {@inheritDoc} */
75 73
     @Override
76 74
     public void execute(final FrameContainer origin, final Server server,
77 75
             final String channel, final boolean isSilent, final CommandArguments args) {
78 76
         server.getParser().sendRawMessage("NAMES " + channel);
79 77
     }
80 78
 
81
-    /** {@inheritDoc} */
82 79
     @Override
83 80
     public AdditionalTabTargets getSuggestions(final int arg,
84 81
             final IntelligentCommandContext context) {

+ 0
- 1
src/com/dmdirc/commandparser/commands/channel/Part.java Целия файл

@@ -57,7 +57,6 @@ public class Part extends Command {
57 57
         super(controller);
58 58
     }
59 59
 
60
-    /** {@inheritDoc} */
61 60
     @Override
62 61
     public void execute(final FrameContainer origin,
63 62
             final CommandArguments args, final CommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/channel/SetNickColour.java Целия файл

@@ -67,7 +67,6 @@ public class SetNickColour extends Command implements IntelligentCommand {
67 67
         this.colourManager = colourManager;
68 68
     }
69 69
 
70
-    /** {@inheritDoc} */
71 70
     @Override
72 71
     public void execute(final FrameContainer origin,
73 72
             final CommandArguments args, final CommandContext context) {
@@ -131,7 +130,6 @@ public class SetNickColour extends Command implements IntelligentCommand {
131 130
         }
132 131
     }
133 132
 
134
-    /** {@inheritDoc} */
135 133
     @Override
136 134
     public AdditionalTabTargets getSuggestions(final int arg,
137 135
             final IntelligentCommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/channel/ShowTopic.java Целия файл

@@ -60,7 +60,6 @@ public class ShowTopic extends Command implements ExternalCommand {
60 60
         super(controller);
61 61
     }
62 62
 
63
-    /** {@inheritDoc} */
64 63
     @Override
65 64
     public void execute(final FrameContainer origin,
66 65
             final CommandArguments args, final CommandContext context) {
@@ -83,7 +82,6 @@ public class ShowTopic extends Command implements ExternalCommand {
83 82
         }
84 83
     }
85 84
 
86
-    /** {@inheritDoc} */
87 85
     @Override
88 86
     public void execute(final FrameContainer origin, final Server server,
89 87
             final String channel, final boolean isSilent, final CommandArguments args) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/chat/Me.java Целия файл

@@ -59,7 +59,6 @@ public class Me extends Command implements ValidatingCommand {
59 59
         super(controller);
60 60
     }
61 61
 
62
-    /** {@inheritDoc} */
63 62
     @Override
64 63
     public void execute(final FrameContainer origin,
65 64
             final CommandArguments args, final CommandContext context) {
@@ -71,7 +70,6 @@ public class Me extends Command implements ValidatingCommand {
71 70
         }
72 71
     }
73 72
 
74
-    /** {@inheritDoc} */
75 73
     @Override
76 74
     public ValidationResponse validateArguments(
77 75
             final WritableFrameContainer origin,

+ 1
- 2
src/com/dmdirc/commandparser/commands/flags/CommandFlagHandler.java Целия файл

@@ -62,8 +62,7 @@ public class CommandFlagHandler {
62 62
     /**
63 63
      * Processes the specified arguments and parses out command flags. If the specified arguments
64 64
      * aren't valid given the flags belonging to this command flag handler, an error message is sent
65
-     * to the origin and
66
-     * <code>null</code> is returned from this method.
65
+     * to the origin and <code>null</code> is returned from this method.
67 66
      *
68 67
      * @param origin    The container where the command was entered
69 68
      * @param arguments The arguments passed to the command

+ 1
- 1
src/com/dmdirc/commandparser/commands/flags/CommandFlagResult.java Целия файл

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

+ 0
- 2
src/com/dmdirc/commandparser/commands/global/AliasCommand.java Целия файл

@@ -72,7 +72,6 @@ public class AliasCommand extends Command implements IntelligentCommand {
72 72
         this.aliasWrapper = aliasWrapper;
73 73
     }
74 74
 
75
-    /** {@inheritDoc} */
76 75
     @Override
77 76
     public void execute(final FrameContainer origin,
78 77
             final CommandArguments args, final CommandContext context) {
@@ -137,7 +136,6 @@ public class AliasCommand extends Command implements IntelligentCommand {
137 136
         return false;
138 137
     }
139 138
 
140
-    /** {@inheritDoc} */
141 139
     @Override
142 140
     public AdditionalTabTargets getSuggestions(final int arg,
143 141
             final IntelligentCommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/global/AllServers.java Целия файл

@@ -62,7 +62,6 @@ public class AllServers extends Command implements IntelligentCommand {
62 62
         this.serverManager = serverManager;
63 63
     }
64 64
 
65
-    /** {@inheritDoc} */
66 65
     @Override
67 66
     public void execute(final FrameContainer origin,
68 67
             final CommandArguments args, final CommandContext context) {
@@ -73,7 +72,6 @@ public class AllServers extends Command implements IntelligentCommand {
73 72
         }
74 73
     }
75 74
 
76
-    /** {@inheritDoc} */
77 75
     @Override
78 76
     public AdditionalTabTargets getSuggestions(final int arg,
79 77
             final IntelligentCommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/global/Clear.java Целия файл

@@ -55,14 +55,12 @@ public class Clear extends Command implements IntelligentCommand {
55 55
         super(controller);
56 56
     }
57 57
 
58
-    /** {@inheritDoc} */
59 58
     @Override
60 59
     public void execute(final FrameContainer origin,
61 60
             final CommandArguments args, final CommandContext context) {
62 61
         origin.getDocument().clear();
63 62
     }
64 63
 
65
-    /** {@inheritDoc} */
66 64
     @Override
67 65
     public AdditionalTabTargets getSuggestions(final int arg,
68 66
             final IntelligentCommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/global/Echo.java Целия файл

@@ -78,7 +78,6 @@ public class Echo extends Command implements IntelligentCommand {
78 78
         handler = new CommandFlagHandler(timeStampFlag, targetFlag);
79 79
     }
80 80
 
81
-    /** {@inheritDoc} */
82 81
     @Override
83 82
     public void execute(final FrameContainer origin,
84 83
             final CommandArguments args, final CommandContext context) {
@@ -123,7 +122,6 @@ public class Echo extends Command implements IntelligentCommand {
123 122
         }
124 123
     }
125 124
 
126
-    /** {@inheritDoc} */
127 125
     @Override
128 126
     public AdditionalTabTargets getSuggestions(final int arg,
129 127
             final IntelligentCommandContext context) {

+ 0
- 1
src/com/dmdirc/commandparser/commands/global/Exit.java Целия файл

@@ -59,7 +59,6 @@ public class Exit extends Command {
59 59
         this.controller = lifecycleController;
60 60
     }
61 61
 
62
-    /** {@inheritDoc} */
63 62
     @Override
64 63
     public void execute(final FrameContainer origin,
65 64
             final CommandArguments args, final CommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/global/Help.java Целия файл

@@ -65,7 +65,6 @@ public class Help extends Command implements IntelligentCommand {
65 65
         super(controller);
66 66
     }
67 67
 
68
-    /** {@inheritDoc} */
69 68
     @Override
70 69
     public void execute(final FrameContainer origin,
71 70
             final CommandArguments args, final CommandContext context) {
@@ -145,7 +144,6 @@ public class Help extends Command implements IntelligentCommand {
145 144
         }
146 145
     }
147 146
 
148
-    /** {@inheritDoc} */
149 147
     @Override
150 148
     public AdditionalTabTargets getSuggestions(final int arg,
151 149
             final IntelligentCommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/global/Ifplugin.java Целия файл

@@ -74,7 +74,6 @@ public class Ifplugin extends Command implements IntelligentCommand {
74 74
         this.globalCommandParserProvider = globalCommandParserProvider;
75 75
     }
76 76
 
77
-    /** {@inheritDoc} */
78 77
     @Override
79 78
     public void execute(final FrameContainer origin,
80 79
             final CommandArguments args, final CommandContext context) {
@@ -106,7 +105,6 @@ public class Ifplugin extends Command implements IntelligentCommand {
106 105
         }
107 106
     }
108 107
 
109
-    /** {@inheritDoc} */
110 108
     @Override
111 109
     public AdditionalTabTargets getSuggestions(final int arg,
112 110
             final IntelligentCommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/global/LoadPlugin.java Целия файл

@@ -62,7 +62,6 @@ public class LoadPlugin extends Command implements IntelligentCommand {
62 62
         this.pluginManager = pluginManager;
63 63
     }
64 64
 
65
-    /** {@inheritDoc} */
66 65
     @Override
67 66
     public void execute(final FrameContainer origin,
68 67
             final CommandArguments args, final CommandContext context) {
@@ -95,7 +94,6 @@ public class LoadPlugin extends Command implements IntelligentCommand {
95 94
         }
96 95
     }
97 96
 
98
-    /** {@inheritDoc} */
99 97
     @Override
100 98
     public AdditionalTabTargets getSuggestions(final int arg,
101 99
             final IntelligentCommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/global/NewServer.java Целия файл

@@ -87,7 +87,6 @@ public class NewServer extends Command implements IntelligentCommand {
87 87
         this.uriParser = uriParser;
88 88
     }
89 89
 
90
-    /** {@inheritDoc} */
91 90
     @Override
92 91
     public void execute(final FrameContainer origin,
93 92
             final CommandArguments args, final CommandContext context) {
@@ -111,7 +110,6 @@ public class NewServer extends Command implements IntelligentCommand {
111 110
         }
112 111
     }
113 112
 
114
-    /** {@inheritDoc} */
115 113
     @Override
116 114
     public AdditionalTabTargets getSuggestions(final int arg,
117 115
             final IntelligentCommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/global/Notify.java Целия файл

@@ -61,7 +61,6 @@ public class Notify extends Command implements IntelligentCommand {
61 61
         this.colourManager = colourManager;
62 62
     }
63 63
 
64
-    /** {@inheritDoc} */
65 64
     @Override
66 65
     public void execute(final FrameContainer origin,
67 66
             final CommandArguments args, final CommandContext context) {
@@ -83,7 +82,6 @@ public class Notify extends Command implements IntelligentCommand {
83 82
         }
84 83
     }
85 84
 
86
-    /** {@inheritDoc} */
87 85
     @Override
88 86
     public AdditionalTabTargets getSuggestions(final int arg,
89 87
             final IntelligentCommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/global/OpenWindow.java Целия файл

@@ -79,7 +79,6 @@ public class OpenWindow extends Command implements IntelligentCommand {
79 79
         this.configProvider = configProvider;
80 80
     }
81 81
 
82
-    /** {@inheritDoc} */
83 82
     @Override
84 83
     public void execute(final FrameContainer origin,
85 84
             final CommandArguments args, final CommandContext context) {
@@ -133,7 +132,6 @@ public class OpenWindow extends Command implements IntelligentCommand {
133 132
         }
134 133
     }
135 134
 
136
-    /** {@inheritDoc} */
137 135
     @Override
138 136
     public AdditionalTabTargets getSuggestions(final int arg,
139 137
             final IntelligentCommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/global/ReloadActions.java Целия файл

@@ -56,7 +56,6 @@ public final class ReloadActions extends Command implements IntelligentCommand {
56 56
         super(controller);
57 57
     }
58 58
 
59
-    /** {@inheritDoc} */
60 59
     @Override
61 60
     public void execute(final FrameContainer origin,
62 61
             final CommandArguments args, final CommandContext context) {
@@ -64,7 +63,6 @@ public final class ReloadActions extends Command implements IntelligentCommand {
64 63
         sendLine(origin, args.isSilent(), FORMAT_OUTPUT, "Actions reloaded.");
65 64
     }
66 65
 
67
-    /** {@inheritDoc} */
68 66
     @Override
69 67
     public AdditionalTabTargets getSuggestions(final int arg,
70 68
             final IntelligentCommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/global/ReloadIdentities.java Целия файл

@@ -61,7 +61,6 @@ public class ReloadIdentities extends Command implements IntelligentCommand {
61 61
         this.identityController = identityController;
62 62
     }
63 63
 
64
-    /** {@inheritDoc} */
65 64
     @Override
66 65
     public void execute(final FrameContainer origin,
67 66
             final CommandArguments args, final CommandContext context) {
@@ -70,7 +69,6 @@ public class ReloadIdentities extends Command implements IntelligentCommand {
70 69
         sendLine(origin, args.isSilent(), FORMAT_OUTPUT, "Identities reloaded.");
71 70
     }
72 71
 
73
-    /** {@inheritDoc} */
74 72
     @Override
75 73
     public AdditionalTabTargets getSuggestions(final int arg,
76 74
             final IntelligentCommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/global/ReloadPlugin.java Целия файл

@@ -61,7 +61,6 @@ public class ReloadPlugin extends Command implements IntelligentCommand {
61 61
         this.pluginManager = pluginManager;
62 62
     }
63 63
 
64
-    /** {@inheritDoc} */
65 64
     @Override
66 65
     public void execute(final FrameContainer origin,
67 66
             final CommandArguments args, final CommandContext context) {
@@ -81,7 +80,6 @@ public class ReloadPlugin extends Command implements IntelligentCommand {
81 80
         }
82 81
     }
83 82
 
84
-    /** {@inheritDoc} */
85 83
     @Override
86 84
     public AdditionalTabTargets getSuggestions(final int arg,
87 85
             final IntelligentCommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/global/SaveConfig.java Целия файл

@@ -61,7 +61,6 @@ public final class SaveConfig extends Command implements IntelligentCommand {
61 61
         this.identityController = identityController;
62 62
     }
63 63
 
64
-    /** {@inheritDoc} */
65 64
     @Override
66 65
     public void execute(final FrameContainer origin,
67 66
             final CommandArguments args, final CommandContext context) {
@@ -70,7 +69,6 @@ public final class SaveConfig extends Command implements IntelligentCommand {
70 69
         sendLine(origin, args.isSilent(), FORMAT_OUTPUT, "Configuration file saved.");
71 70
     }
72 71
 
73
-    /** {@inheritDoc} */
74 72
     @Override
75 73
     public AdditionalTabTargets getSuggestions(final int arg,
76 74
             final IntelligentCommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/global/SetCommand.java Целия файл

@@ -99,7 +99,6 @@ public class SetCommand extends Command implements IntelligentCommand {
99 99
         handler = new CommandFlagHandler(serverFlag, channelFlag, unsetFlag, appendFlag);
100 100
     }
101 101
 
102
-    /** {@inheritDoc} */
103 102
     @Override
104 103
     public void execute(final FrameContainer origin,
105 104
             final CommandArguments args, final CommandContext context) {
@@ -300,7 +299,6 @@ public class SetCommand extends Command implements IntelligentCommand {
300 299
         sendLine(origin, isSilent, FORMAT_OUTPUT, domain + "." + option + " has been unset.");
301 300
     }
302 301
 
303
-    /** {@inheritDoc} */
304 302
     @Override
305 303
     public AdditionalTabTargets getSuggestions(final int arg,
306 304
             final IntelligentCommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/global/UnloadPlugin.java Целия файл

@@ -61,7 +61,6 @@ public class UnloadPlugin extends Command implements IntelligentCommand {
61 61
         this.pluginManager = pluginManager;
62 62
     }
63 63
 
64
-    /** {@inheritDoc} */
65 64
     @Override
66 65
     public void execute(final FrameContainer origin,
67 66
             final CommandArguments args, final CommandContext context) {
@@ -82,7 +81,6 @@ public class UnloadPlugin extends Command implements IntelligentCommand {
82 81
         }
83 82
     }
84 83
 
85
-    /** {@inheritDoc} */
86 84
     @Override
87 85
     public AdditionalTabTargets getSuggestions(final int arg,
88 86
             final IntelligentCommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/server/AllChannels.java Целия файл

@@ -58,7 +58,6 @@ public class AllChannels extends Command implements IntelligentCommand {
58 58
         super(controller);
59 59
     }
60 60
 
61
-    /** {@inheritDoc} */
62 61
     @Override
63 62
     public void execute(final FrameContainer origin,
64 63
             final CommandArguments args, final CommandContext context) {
@@ -71,7 +70,6 @@ public class AllChannels extends Command implements IntelligentCommand {
71 70
         }
72 71
     }
73 72
 
74
-    /** {@inheritDoc} */
75 73
     @Override
76 74
     public AdditionalTabTargets getSuggestions(final int arg,
77 75
             final IntelligentCommandContext context) {

+ 0
- 1
src/com/dmdirc/commandparser/commands/server/Away.java Целия файл

@@ -56,7 +56,6 @@ public class Away extends Command {
56 56
         super(controller);
57 57
     }
58 58
 
59
-    /** {@inheritDoc} */
60 59
     @Override
61 60
     public void execute(final FrameContainer origin,
62 61
             final CommandArguments args, final CommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/server/Back.java Целия файл

@@ -58,7 +58,6 @@ public class Back extends Command implements IntelligentCommand {
58 58
         super(controller);
59 59
     }
60 60
 
61
-    /** {@inheritDoc} */
62 61
     @Override
63 62
     public void execute(final FrameContainer origin,
64 63
             final CommandArguments args, final CommandContext context) {
@@ -66,7 +65,6 @@ public class Back extends Command implements IntelligentCommand {
66 65
         server.getParser().getLocalClient().setBack();
67 66
     }
68 67
 
69
-    /** {@inheritDoc} */
70 68
     @Override
71 69
     public AdditionalTabTargets getSuggestions(final int arg,
72 70
             final IntelligentCommandContext context) {

+ 0
- 1
src/com/dmdirc/commandparser/commands/server/ChangeServer.java Целия файл

@@ -64,7 +64,6 @@ public class ChangeServer extends Command {
64 64
         this.uriParser = uriParser;
65 65
     }
66 66
 
67
-    /** {@inheritDoc} */
68 67
     @Override
69 68
     public void execute(final FrameContainer origin,
70 69
             final CommandArguments args, final CommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/server/Ctcp.java Целия файл

@@ -60,7 +60,6 @@ public class Ctcp extends Command implements IntelligentCommand {
60 60
         super(controller);
61 61
     }
62 62
 
63
-    /** {@inheritDoc} */
64 63
     @Override
65 64
     public void execute(final FrameContainer origin,
66 65
             final CommandArguments args, final CommandContext context) {
@@ -75,7 +74,6 @@ public class Ctcp extends Command implements IntelligentCommand {
75 74
         }
76 75
     }
77 76
 
78
-    /** {@inheritDoc} */
79 77
     @Override
80 78
     public AdditionalTabTargets getSuggestions(final int arg,
81 79
             final IntelligentCommandContext context) {

+ 0
- 1
src/com/dmdirc/commandparser/commands/server/Disconnect.java Целия файл

@@ -55,7 +55,6 @@ public class Disconnect extends Command {
55 55
         super(controller);
56 56
     }
57 57
 
58
-    /** {@inheritDoc} */
59 58
     @Override
60 59
     public void execute(final FrameContainer origin,
61 60
             final CommandArguments args, final CommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/server/Ignore.java Целия файл

@@ -63,7 +63,6 @@ public class Ignore extends Command implements IntelligentCommand {
63 63
         super(controller);
64 64
     }
65 65
 
66
-    /** {@inheritDoc} */
67 66
     @Override
68 67
     public void execute(final FrameContainer origin,
69 68
             final CommandArguments args, final CommandContext context) {
@@ -171,7 +170,6 @@ public class Ignore extends Command implements IntelligentCommand {
171 170
                 + "'.");
172 171
     }
173 172
 
174
-    /** {@inheritDoc} */
175 173
     @Override
176 174
     public AdditionalTabTargets getSuggestions(final int arg,
177 175
             final IntelligentCommandContext context) {

+ 0
- 3
src/com/dmdirc/commandparser/commands/server/JoinChannelCommand.java Целия файл

@@ -76,7 +76,6 @@ public class JoinChannelCommand extends Command implements
76 76
         actionController.registerListener(this, CoreActionType.CLIENT_LINE_ADDED);
77 77
     }
78 78
 
79
-    /** {@inheritDoc} */
80 79
     @Override
81 80
     public void execute(final FrameContainer origin,
82 81
             final CommandArguments args, final CommandContext context) {
@@ -102,7 +101,6 @@ public class JoinChannelCommand extends Command implements
102 101
         server.join(!args.isSilent(), channels.toArray(new ChannelJoinRequest[channels.size()]));
103 102
     }
104 103
 
105
-    /** {@inheritDoc} */
106 104
     @Override
107 105
     public void processEvent(final ActionType type, final StringBuffer format,
108 106
             final Object... arguments) {
@@ -118,7 +116,6 @@ public class JoinChannelCommand extends Command implements
118 116
         }
119 117
     }
120 118
 
121
-    /** {@inheritDoc} */
122 119
     @Override
123 120
     public AdditionalTabTargets getSuggestions(final int arg,
124 121
             final IntelligentCommandContext context) {

+ 0
- 3
src/com/dmdirc/commandparser/commands/server/Message.java Целия файл

@@ -64,7 +64,6 @@ public class Message extends Command implements IntelligentCommand,
64 64
         super(controller);
65 65
     }
66 66
 
67
-    /** {@inheritDoc} */
68 67
     @Override
69 68
     public void execute(final FrameContainer origin,
70 69
             final CommandArguments args, final CommandContext context) {
@@ -98,7 +97,6 @@ public class Message extends Command implements IntelligentCommand,
98 97
         }
99 98
     }
100 99
 
101
-    /** {@inheritDoc} */
102 100
     @Override
103 101
     public AdditionalTabTargets getSuggestions(final int arg,
104 102
             final IntelligentCommandContext context) {
@@ -114,7 +112,6 @@ public class Message extends Command implements IntelligentCommand,
114 112
         return res;
115 113
     }
116 114
 
117
-    /** {@inheritDoc} */
118 115
     @Override
119 116
     public int getLineCount(final WritableFrameContainer origin,
120 117
             final CommandArguments arguments) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/server/Nick.java Целия файл

@@ -60,7 +60,6 @@ public class Nick extends Command implements IntelligentCommand {
60 60
         super(controller);
61 61
     }
62 62
 
63
-    /** {@inheritDoc} */
64 63
     @Override
65 64
     public void execute(final FrameContainer origin,
66 65
             final CommandArguments args, final CommandContext context) {
@@ -73,7 +72,6 @@ public class Nick extends Command implements IntelligentCommand {
73 72
         server.getParser().getLocalClient().setNickname(args.getArguments()[0]);
74 73
     }
75 74
 
76
-    /** {@inheritDoc} */
77 75
     @Override
78 76
     public AdditionalTabTargets getSuggestions(final int arg,
79 77
             final IntelligentCommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/commands/server/Notice.java Целия файл

@@ -60,7 +60,6 @@ public class Notice extends Command implements IntelligentCommand {
60 60
         super(controller);
61 61
     }
62 62
 
63
-    /** {@inheritDoc} */
64 63
     @Override
65 64
     public void execute(final FrameContainer origin,
66 65
             final CommandArguments args, final CommandContext context) {
@@ -75,7 +74,6 @@ public class Notice extends Command implements IntelligentCommand {
75 74
         }
76 75
     }
77 76
 
78
-    /** {@inheritDoc} */
79 77
     @Override
80 78
     public AdditionalTabTargets getSuggestions(final int arg,
81 79
             final IntelligentCommandContext context) {

+ 0
- 3
src/com/dmdirc/commandparser/commands/server/OpenQuery.java Целия файл

@@ -63,7 +63,6 @@ public class OpenQuery extends Command implements IntelligentCommand,
63 63
         super(controller);
64 64
     }
65 65
 
66
-    /** {@inheritDoc} */
67 66
     @Override
68 67
     public void execute(final FrameContainer origin,
69 68
             final CommandArguments args, final CommandContext context) {
@@ -97,7 +96,6 @@ public class OpenQuery extends Command implements IntelligentCommand,
97 96
         }
98 97
     }
99 98
 
100
-    /** {@inheritDoc} */
101 99
     @Override
102 100
     public AdditionalTabTargets getSuggestions(final int arg,
103 101
             final IntelligentCommandContext context) {
@@ -111,7 +109,6 @@ public class OpenQuery extends Command implements IntelligentCommand,
111 109
         return targets;
112 110
     }
113 111
 
114
-    /** {@inheritDoc} */
115 112
     @Override
116 113
     public int getLineCount(final WritableFrameContainer origin,
117 114
             final CommandArguments arguments) {

+ 0
- 1
src/com/dmdirc/commandparser/commands/server/Raw.java Целия файл

@@ -57,7 +57,6 @@ public class Raw extends Command {
57 57
         super(controller);
58 58
     }
59 59
 
60
-    /** {@inheritDoc} */
61 60
     @Override
62 61
     public void execute(final FrameContainer origin,
63 62
             final CommandArguments args, final CommandContext context) {

+ 0
- 4
src/com/dmdirc/commandparser/commands/server/RawServerCommand.java Целия файл

@@ -53,7 +53,6 @@ public class RawServerCommand extends Command implements CommandInfo {
53 53
         myName = command;
54 54
     }
55 55
 
56
-    /** {@inheritDoc} */
57 56
     @Override
58 57
     public void execute(final FrameContainer origin,
59 58
             final CommandArguments args, final CommandContext context) {
@@ -61,19 +60,16 @@ public class RawServerCommand extends Command implements CommandInfo {
61 60
         server.getParser().sendRawMessage(myName.toUpperCase() + " " + args.getArgumentsAsString());
62 61
     }
63 62
 
64
-    /** {@inheritDoc} */
65 63
     @Override
66 64
     public String getName() {
67 65
         return myName;
68 66
     }
69 67
 
70
-    /** {@inheritDoc} */
71 68
     @Override
72 69
     public CommandType getType() {
73 70
         return CommandType.TYPE_SERVER;
74 71
     }
75 72
 
76
-    /** {@inheritDoc} */
77 73
     @Override
78 74
     public String getHelp() {
79 75
         return myName + " [arguments] - sends a " + myName + " command to the server";

+ 0
- 1
src/com/dmdirc/commandparser/commands/server/Reconnect.java Целия файл

@@ -55,7 +55,6 @@ public class Reconnect extends Command {
55 55
         super(controller);
56 56
     }
57 57
 
58
-    /** {@inheritDoc} */
59 58
     @Override
60 59
     public void execute(final FrameContainer origin,
61 60
             final CommandArguments args, final CommandContext context) {

+ 0
- 1
src/com/dmdirc/commandparser/commands/server/Umode.java Целия файл

@@ -58,7 +58,6 @@ public class Umode extends Command {
58 58
         super(controller);
59 59
     }
60 60
 
61
-    /** {@inheritDoc} */
62 61
     @Override
63 62
     public void execute(final FrameContainer origin,
64 63
             final CommandArguments args, final CommandContext context) {

+ 0
- 2
src/com/dmdirc/commandparser/parsers/ChannelCommandParser.java Целия файл

@@ -59,7 +59,6 @@ public class ChannelCommandParser extends ChatCommandParser {
59 59
         super(server, commandController);
60 60
     }
61 61
 
62
-    /** {@inheritDoc} */
63 62
     @Override
64 63
     public void setOwner(final FrameContainer owner) {
65 64
         if (channel == null) {
@@ -69,7 +68,6 @@ public class ChannelCommandParser extends ChatCommandParser {
69 68
         super.setOwner(owner);
70 69
     }
71 70
 
72
-    /** {@inheritDoc} */
73 71
     @Override
74 72
     protected void loadCommands() {
75 73
         commandManager.loadCommands(this, CommandType.TYPE_GLOBAL,

+ 0
- 2
src/com/dmdirc/commandparser/parsers/ChatCommandParser.java Целия файл

@@ -60,7 +60,6 @@ public class ChatCommandParser extends ServerCommandParser {
60 60
         super.setOwner(server);
61 61
     }
62 62
 
63
-    /** {@inheritDoc} */
64 63
     @Override
65 64
     public void setOwner(final FrameContainer owner) {
66 65
         if (this.owner == null) {
@@ -91,7 +90,6 @@ public class ChatCommandParser extends ServerCommandParser {
91 90
         }
92 91
     }
93 92
 
94
-    /** {@inheritDoc} */
95 93
     @Override
96 94
     protected void handleNonCommand(final FrameContainer origin,
97 95
             final String line) {

+ 0
- 1
src/com/dmdirc/commandparser/parsers/GlobalCommandParser.java Целия файл

@@ -63,7 +63,6 @@ public class GlobalCommandParser extends CommandParser {
63 63
         super(configManager, commandManager);
64 64
     }
65 65
 
66
-    /** {@inheritDoc} */
67 66
     @Override
68 67
     public void setOwner(final FrameContainer owner) {
69 68
         // Don't care

+ 0
- 1
src/com/dmdirc/commandparser/parsers/QueryCommandParser.java Целия файл

@@ -60,7 +60,6 @@ public class QueryCommandParser extends ChatCommandParser {
60 60
         super(server, commandController);
61 61
     }
62 62
 
63
-    /** {@inheritDoc} */
64 63
     @Override
65 64
     public void setOwner(final FrameContainer owner) {
66 65
         if (query == null) {

+ 0
- 1
src/com/dmdirc/commandparser/parsers/ServerCommandParser.java Целия файл

@@ -62,7 +62,6 @@ public class ServerCommandParser extends GlobalCommandParser {
62 62
      */
63 63
     private Server server;
64 64
 
65
-    /** {@inheritDoc} */
66 65
     @Override
67 66
     public void setOwner(final FrameContainer owner) {
68 67
         if (server == null && owner instanceof Server) {

+ 9
- 24
src/com/dmdirc/config/BaseConfigProvider.java Целия файл

@@ -37,16 +37,16 @@ import java.util.List;
37 37
 /**
38 38
  * Defines methods to get options from a config provider in various forms.
39 39
  *
40
- * <p>This implementation supports the idea of optional/disabled settings. This is where values may
41
- * be prefixed with the strings
42
- * <code>true:</code> or
43
- * <code>false:</code>, where the former has no effect on the value of the setting, and the latter
44
- * indicates that the user wishes to disable the setting.
40
+ * <p>
41
+ * This implementation supports the idea of optional/disabled settings. This is where values may be
42
+ * prefixed with the strings <code>true:</code> or <code>false:</code>, where the former has no
43
+ * effect on the value of the setting, and the latter indicates that the user wishes to disable the
44
+ * setting.
45 45
  *
46
- * <p>Disabled settings allow for optional settings to have default values; a value can be added
47
- * with the
48
- * <code>false:</code> prefix which effectively disables the default value and makes the setting act
49
- * as though it does not have a value. Note that for this sort of behaviour to make sense, it
46
+ * <p>
47
+ * Disabled settings allow for optional settings to have default values; a value can be added with
48
+ * the <code>false:</code> prefix which effectively disables the default value and makes the setting
49
+ * act as though it does not have a value. Note that for this sort of behaviour to make sense, it
50 50
  * requires an implementation that takes values from multiple sources, such as a
51 51
  * {@link ConfigManager}.
52 52
  */
@@ -58,24 +58,20 @@ public abstract class BaseConfigProvider implements ReadOnlyConfigProvider {
58 58
     private static final Validator<String> INT_VALIDATOR = new OptionalValidator(
59 59
             new NumericalValidator(-1, -1));
60 60
 
61
-    /** {@inheritDoc} */
62 61
     @Override
63 62
     public String getOption(final String domain, final String option) {
64 63
         return getOption(domain, option, PERMISSIVE_VALIDATOR);
65 64
     }
66 65
 
67
-    /** {@inheritDoc} */
68 66
     @Override
69 67
     public abstract String getOption(final String domain,
70 68
             final String option, final Validator<String> validator);
71 69
 
72
-    /** {@inheritDoc} */
73 70
     @Override
74 71
     public boolean hasOptionString(final String domain, final String option) {
75 72
         return hasOptionString(domain, option, PERMISSIVE_VALIDATOR);
76 73
     }
77 74
 
78
-    /** {@inheritDoc} */
79 75
     @Override
80 76
     public boolean hasOptionString(final String domain, final String option,
81 77
             final Validator<String> validator) {
@@ -86,25 +82,21 @@ public abstract class BaseConfigProvider implements ReadOnlyConfigProvider {
86 82
                 && !value.startsWith("false:");
87 83
     }
88 84
 
89
-    /** {@inheritDoc} */
90 85
     @Override
91 86
     public boolean hasOptionInt(final String domain, final String option) {
92 87
         return hasOptionString(domain, option, INT_VALIDATOR);
93 88
     }
94 89
 
95
-    /** {@inheritDoc} */
96 90
     @Override
97 91
     public boolean hasOptionChar(final String domain, final String option) {
98 92
         return hasOptionString(domain, option);
99 93
     }
100 94
 
101
-    /** {@inheritDoc} */
102 95
     @Override
103 96
     public boolean hasOptionBool(final String domain, final String option) {
104 97
         return hasOption(domain, option, PERMISSIVE_VALIDATOR);
105 98
     }
106 99
 
107
-    /** {@inheritDoc} */
108 100
     @Override
109 101
     public String getOptionString(final String domain, final String option,
110 102
             final boolean required, final Validator<String> validator,
@@ -128,26 +120,22 @@ public abstract class BaseConfigProvider implements ReadOnlyConfigProvider {
128 120
         }
129 121
     }
130 122
 
131
-    /** {@inheritDoc} */
132 123
     @Override
133 124
     public String getOptionString(final String domain, final String option,
134 125
             final String... fallbacks) {
135 126
         return getOptionString(domain, option, true, PERMISSIVE_VALIDATOR, fallbacks);
136 127
     }
137 128
 
138
-    /** {@inheritDoc} */
139 129
     @Override
140 130
     public char getOptionChar(final String domain, final String option) {
141 131
         return getOption(domain, option).charAt(0);
142 132
     }
143 133
 
144
-    /** {@inheritDoc} */
145 134
     @Override
146 135
     public boolean getOptionBool(final String domain, final String option) {
147 136
         return Boolean.parseBoolean(getOption(domain, option));
148 137
     }
149 138
 
150
-    /** {@inheritDoc} */
151 139
     @Override
152 140
     public List<String> getOptionList(final String domain, final String option,
153 141
             final boolean trimEmpty) {
@@ -164,20 +152,17 @@ public abstract class BaseConfigProvider implements ReadOnlyConfigProvider {
164 152
         return res;
165 153
     }
166 154
 
167
-    /** {@inheritDoc} */
168 155
     @Override
169 156
     public List<String> getOptionList(final String domain, final String option) {
170 157
         return getOptionList(domain, option, true);
171 158
     }
172 159
 
173
-    /** {@inheritDoc} */
174 160
     @Override
175 161
     public Integer getOptionInt(final String domain, final String option,
176 162
             final String... fallbacks) {
177 163
         return getOptionInt(domain, option, true, fallbacks);
178 164
     }
179 165
 
180
-    /** {@inheritDoc} */
181 166
     @Override
182 167
     public Integer getOptionInt(final String domain, final String option,
183 168
             final boolean required, final String... fallbacks) {

+ 0
- 0
src/com/dmdirc/config/CipherUtils.java Целия файл


Някои файлове не бяха показани, защото твърде много файлове са промени

Loading…
Отказ
Запис