Переглянути джерело

Bunch of minor style improvements

git-svn-id: http://svn.dmdirc.com/trunk@3626 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Chris Smith 16 роки тому
джерело
коміт
b4591c19a9

+ 1
- 1
src/com/dmdirc/ChannelEventHandler.java Переглянути файл

@@ -59,7 +59,7 @@ public final class ChannelEventHandler extends EventHandler implements
59 59
     @Override
60 60
     protected void addCallback(final CallbackManager cbm, final String name)
61 61
             throws CallbackNotFoundException {
62
-        if (name.equals("onAwayStateOther")) {
62
+        if ("onAwayStateOther".equals(name)) {
63 63
             cbm.addCallback(name, this);
64 64
         } else {
65 65
             cbm.addCallback(name, this, owner.getChannelInfo().getName());

+ 2
- 2
src/com/dmdirc/Server.java Переглянути файл

@@ -122,7 +122,7 @@ public final class Server extends WritableFrameContainer implements Serializable
122 122
     private final List<Invite> invites = new ArrayList<Invite>();
123 123
     
124 124
     /** Our ignore list. */
125
-    private IgnoreList ignoreList = new IgnoreList();
125
+    private final IgnoreList ignoreList = new IgnoreList();
126 126
     
127 127
     /** Our string convertor. */
128 128
     private IRCStringConverter converter = new IRCStringConverter();
@@ -941,7 +941,7 @@ public final class Server extends WritableFrameContainer implements Serializable
941 941
      * @param channelName The name of the channel to test
942 942
      * @return True if the channel name is valid, false otherwise
943 943
      */
944
-    public boolean isValidChannelName(String channelName) {
944
+    public boolean isValidChannelName(final String channelName) {
945 945
         return hasChannel(channelName) ||
946 946
                 (parser != null && parser.isValidChannelName(channelName));
947 947
     }

+ 1
- 1
src/com/dmdirc/ServerEventHandler.java Переглянути файл

@@ -196,7 +196,7 @@ public final class ServerEventHandler extends EventHandler
196 196
     
197 197
     /** {@inheritDoc} */
198 198
     @Override
199
-    public void onPingSent(IRCParser tParser) {
199
+    public void onPingSent(final IRCParser tParser) {
200 200
         checkParser(tParser);
201 201
         
202 202
         ActionManager.processEvent(CoreActionType.SERVER_PINGSENT, null, owner);

+ 1
- 1
src/com/dmdirc/actions/ActionCondition.java Переглянути файл

@@ -199,7 +199,7 @@ public class ActionCondition {
199 199
     /** {@inheritDoc} */
200 200
     @Override
201 201
     public boolean equals(final Object obj) {
202
-        if (obj == null || !(obj instanceof ActionCondition)) {
202
+        if (!(obj instanceof ActionCondition)) {
203 203
             return false;
204 204
         }
205 205
         

+ 1
- 1
src/com/dmdirc/actions/ActionGroup.java Переглянути файл

@@ -41,7 +41,7 @@ public class ActionGroup extends ArrayList<Action> {
41 41
     private static final long serialVersionUID = 1;    
42 42
     
43 43
     /** The name of this action group. */
44
-    private String name = null;
44
+    private final String name;
45 45
     
46 46
     /** The description of this action group. */
47 47
     private String description = null;

+ 70
- 70
src/com/dmdirc/actions/ConditionTree.java Переглянути файл

@@ -46,7 +46,7 @@ public class ConditionTree {
46 46
         /** Doesn't do anything (an empty tree). */
47 47
         NOOP
48 48
     }
49
-       
49
+
50 50
     /** The left subtree of this tree. */
51 51
     private ConditionTree leftArg = null;
52 52
 
@@ -57,11 +57,11 @@ public class ConditionTree {
57 57
     private int argument = -1;
58 58
 
59 59
     /** The operation that this tree performs. */
60
-    private OPERATION op;
61
-    
60
+    private final OPERATION op;
61
+
62 62
     /**
63 63
      * Creates a new ConditionTree for a binary operation.
64
-     * 
64
+     *
65 65
      * @param op The binary operation to perform
66 66
      * @param leftArg The left argument/subtree
67 67
      * @param rightArg The right argument/subtree
@@ -72,46 +72,46 @@ public class ConditionTree {
72 72
         assert(op != OPERATION.NOT);
73 73
         assert(leftArg != null);
74 74
         assert(rightArg != null);
75
-        
75
+
76 76
         this.op = op;
77 77
         this.leftArg = leftArg;
78 78
         this.rightArg = rightArg;
79 79
     }
80
-    
80
+
81 81
     /**
82 82
      * Creates a new ConditionTree for a unary operation.
83
-     * 
83
+     *
84 84
      * @param op
85 85
      * @param argument
86 86
      */
87 87
     private ConditionTree(final OPERATION op, final ConditionTree argument) {
88 88
         assert(op == OPERATION.NOT);
89
-        
89
+
90 90
         this.op = op;
91 91
         this.leftArg = argument;
92
-    }    
93
-    
92
+    }
93
+
94 94
     /**
95 95
      * Creates a new ConditionTree for a VAR operation with the specified
96 96
      * argument number.
97
-     * 
97
+     *
98 98
      * @param argument The number of the argument that's to be tested.
99 99
      */
100 100
     private ConditionTree(final int argument) {
101 101
         this.op = OPERATION.VAR;
102 102
         this.argument = argument;
103 103
     }
104
-    
104
+
105 105
     /**
106 106
      * Creates a new ConditionTree for a NOOP operation.
107 107
      */
108 108
     private ConditionTree() {
109 109
         this.op = OPERATION.NOOP;
110 110
     }
111
-    
111
+
112 112
     /**
113 113
      * Retrieves the highest argument number that is used in this condition tree.
114
-     * 
114
+     *
115 115
      * @return The highest argument number used in this tree
116 116
      */
117 117
     public int getMaximumArgument() {
@@ -129,7 +129,7 @@ public class ConditionTree {
129 129
     /**
130 130
      * Evaluates this tree with the specified conditions. Returns the result
131 131
      * of the evaluation.
132
-     * 
132
+     *
133 133
      * @param conditions The binary values of each of the conditions used in
134 134
      * this three
135 135
      * @return The result of the evaluation of this tree
@@ -148,13 +148,13 @@ public class ConditionTree {
148 148
                 return true;
149 149
         }
150 150
     }
151
-    
151
+
152 152
     /**
153 153
      * Retrieves a String representation of this ConditionTree. The string
154 154
      * representation is a normalised formula describing this tree and all of
155 155
      * its children. The output of this method will generate an identical tree
156 156
      * if passed to parseString.
157
-     * 
157
+     *
158 158
      * @return A string representation of this tree
159 159
      */
160 160
     @Override
@@ -173,42 +173,42 @@ public class ConditionTree {
173 173
         default:
174 174
             return "<unknown>";
175 175
         }
176
-    }    
177
-    
176
+    }
177
+
178 178
     /**
179 179
      * Parses the specified string into a condition tree.
180
-     * 
180
+     *
181 181
      * @param string The string to be parsed
182 182
      * @return The corresponding condition tree, or null if there was an error
183 183
      * while parsing the data
184 184
      */
185 185
     public static ConditionTree parseString(final String string) {
186 186
         final Deque<Object> stack = new ArrayDeque<Object>();
187
-        
187
+
188 188
         for (int i = 0; i < string.length(); i++) {
189 189
             final char m = string.charAt(i);
190
-            
190
+
191 191
             if (isInt(m)) {
192
-                String temp = "" + m;
193
-                
192
+                String temp = String.valueOf(m);
193
+
194 194
                 while (i + 1 < string.length() && isInt(string.charAt(i + 1))) {
195 195
                     temp = temp + string.charAt(i + 1);
196 196
                     i++;
197 197
                 }
198
-                
198
+
199 199
                 stack.add(new ConditionTree(Integer.parseInt(temp)));
200 200
             } else if (m != ' ' && m != '\t' && m != '\n' && m != '\r') {
201 201
                 stack.add(m);
202 202
             }
203 203
         }
204
-        
204
+
205 205
         return parseStack(stack);
206 206
     }
207
-    
207
+
208 208
     /**
209 209
      * Parses the specified stack of elements, and returns a corresponding
210 210
      * ConditionTree.
211
-     * 
211
+     *
212 212
      * @param stack The stack to be read.
213 213
      * @return The corresponding condition tree, or null if there was an error
214 214
      * while parsing the data.
@@ -216,10 +216,10 @@ public class ConditionTree {
216 216
     @SuppressWarnings("fallthrough")
217 217
     private static ConditionTree parseStack(final Deque<Object> stack) {
218 218
         final Deque<Object> myStack = new ArrayDeque<Object>();
219
-        
219
+
220 220
         while (!stack.isEmpty()) {
221 221
             final Object object = stack.poll();
222
-            
222
+
223 223
             if (object instanceof Character && ((Character) object) == ')') {
224 224
                 final ConditionTree bracket = readBracket(myStack);
225 225
 
@@ -232,34 +232,36 @@ public class ConditionTree {
232 232
                 myStack.add(object);
233 233
             }
234 234
         }
235
-        
235
+
236 236
         while (!myStack.isEmpty()) {
237 237
             switch (myStack.size()) {
238 238
                 case 1:
239 239
                     final Object first = myStack.pollFirst();
240 240
                     if (first instanceof ConditionTree) {
241 241
                         return (ConditionTree) first;
242
-                    }            
242
+                    }
243 243
                 case 0:
244 244
                     return null;
245 245
             }
246
-            
246
+
247 247
             final ConditionTree first = readTerm(myStack);
248
-            
248
+
249 249
             if (first == null) {
250 250
                 return null;
251 251
             } else if (myStack.isEmpty()) {
252 252
                 return first;
253 253
             }
254
-            
254
+
255 255
             final Object second = myStack.pollFirst();
256
-            
257
-            if (!myStack.isEmpty()) {
256
+
257
+            if (myStack.isEmpty()) {
258
+                return null;
259
+            } else {
258 260
                 final ConditionTree third = readTerm(myStack);
259
-                
261
+
260 262
                 if (first != null && third != null && second instanceof Character) {
261 263
                     OPERATION op;
262
-                    
264
+
263 265
                     if ((Character) second == '&') {
264 266
                         op = OPERATION.AND;
265 267
                     } else if ((Character) second == '|') {
@@ -267,48 +269,46 @@ public class ConditionTree {
267 269
                     } else {
268 270
                         return null;
269 271
                     }
270
-                    
272
+
271 273
                     myStack.addFirst(new ConditionTree(op, first, third));
272 274
                 } else {
273 275
                     return null;
274 276
                 }
275
-            } else {
276
-                return null;
277 277
             }
278 278
         }
279
-        
279
+
280 280
         return new ConditionTree();
281 281
     }
282
-    
282
+
283 283
     /**
284 284
      * Reads and returns a single term from the specified stack.
285
-     * 
285
+     *
286 286
      * @param stack The stack to be read
287 287
      * @return The ConditionTree representing the last element on the stack,
288 288
      * or null if it was not possible to create one.
289 289
      */
290 290
     private static ConditionTree readTerm(final Deque<Object> stack) {
291 291
         final Object first = stack.pollFirst();
292
-        
292
+
293 293
         if (first instanceof Character && (Character) first == '!') {
294 294
             if (stack.isEmpty()) {
295 295
                 return null;
296 296
             }
297
-            
297
+
298 298
             return new ConditionTree(OPERATION.NOT, readTerm(stack));
299 299
         } else {
300 300
             if (!(first instanceof ConditionTree)) {
301 301
                 return null;
302 302
             }
303
-            
303
+
304 304
             return (ConditionTree) first;
305 305
         }
306 306
     }
307
-    
307
+
308 308
     /**
309 309
      * Pops elements off of the end of the specified stack until an opening
310 310
      * bracket is reached, and then returns the parsed content of the bracket.
311
-     * 
311
+     *
312 312
      * @param stack The stack to be read for the bracket
313 313
      * @return The parsed contents of the bracket, or null if the brackets were
314 314
      * mismatched.
@@ -316,74 +316,74 @@ public class ConditionTree {
316 316
     private static ConditionTree readBracket(final Deque<Object> stack) {
317 317
         final Deque<Object> tempStack = new ArrayDeque<Object>();
318 318
         boolean found = false;
319
-        
319
+
320 320
         while (!found && !stack.isEmpty()) {
321 321
             final Object object = stack.pollLast();
322
-            
322
+
323 323
             if (object instanceof Character && ((Character) object) == '(') {
324 324
                 found = true;
325 325
             } else {
326 326
                 tempStack.addFirst(object);
327 327
             }
328 328
         }
329
-        
330
-        if (!found) {
331
-            return null;
332
-        } else {
329
+
330
+        if (found) {
333 331
             return parseStack(tempStack);
332
+        } else {
333
+            return null;
334 334
         }
335 335
     }
336
-    
336
+
337 337
     /**
338 338
      * Determines if the specified character represents a single digit.
339
-     * 
339
+     *
340 340
      * @param target The character to be tested
341 341
      * @return True if the character is a digit, false otherwise
342 342
      */
343 343
     private static boolean isInt(final char target) {
344 344
         return target >= '0' && target <= '9';
345 345
     }
346
-    
346
+
347 347
     /**
348 348
      * Creates a condition tree by disjoining the specified number of arguments
349 349
      * together.
350
-     * 
350
+     *
351 351
      * @param numArgs The number of arguments to be disjoined
352 352
      * @return The corresponding condition tree
353 353
      */
354 354
     public static ConditionTree createDisjunction(final int numArgs) {
355 355
         final StringBuilder builder = new StringBuilder();
356
-        
356
+
357 357
         for (int i = 0; i < numArgs; i++) {
358 358
             if (builder.length() != 0) {
359 359
                 builder.append('|');
360 360
             }
361
-            
361
+
362 362
             builder.append(i);
363 363
         }
364
-        
365
-        return parseString(builder.toString());        
364
+
365
+        return parseString(builder.toString());
366 366
     }
367 367
 
368 368
     /**
369 369
      * Creates a condition tree by conjoining the specified number of arguments
370 370
      * together.
371
-     * 
371
+     *
372 372
      * @param numArgs The number of arguments to be conjoined
373 373
      * @return The corresponding condition tree
374
-     */    
374
+     */
375 375
     public static ConditionTree createConjunction(final int numArgs) {
376 376
         final StringBuilder builder = new StringBuilder();
377
-        
377
+
378 378
         for (int i = 0; i < numArgs; i++) {
379 379
             if (builder.length() != 0) {
380 380
                 builder.append('&');
381 381
             }
382
-            
382
+
383 383
             builder.append(i);
384 384
         }
385
-        
385
+
386 386
         return parseString(builder.toString());
387 387
     }
388
-       
388
+
389 389
 }

+ 4
- 4
src/com/dmdirc/addons/audio/AudioPlayer.java Переглянути файл

@@ -22,15 +22,15 @@
22 22
 
23 23
 package com.dmdirc.addons.audio;
24 24
 
25
+import java.io.File;
26
+import java.applet.AudioClip;
27
+import java.applet.Applet;
28
+
25 29
 import javax.sound.sampled.AudioInputStream;
26 30
 import javax.sound.sampled.AudioSystem;
27 31
 import javax.sound.sampled.AudioFormat;
28 32
 import javax.sound.sampled.SourceDataLine;
29 33
 import javax.sound.sampled.DataLine;
30
-import java.io.File;
31
-import java.io.FileNotFoundException;
32
-import java.applet.AudioClip;
33
-import java.applet.Applet;
34 34
 
35 35
 /**
36 36
  * The AudioPlayer handles the playing of the audio

+ 6
- 6
src/com/dmdirc/addons/nowplaying/ConfigPanel.java Переглянути файл

@@ -86,10 +86,10 @@ public class ConfigPanel extends JPanel implements PreferencesInterface, KeyList
86 86
     public ConfigPanel(final NowPlayingPlugin plugin, final List<String> sources) {
87 87
         super();
88 88
 
89
-        if (sources != null) {
90
-            this.sources = new LinkedList<String>(sources);
91
-        } else {
89
+        if (sources == null) {
92 90
             this.sources = new LinkedList<String>();
91
+        } else {
92
+            this.sources = new LinkedList<String>(sources);
93 93
         }
94 94
         this.plugin = plugin;
95 95
 
@@ -202,19 +202,19 @@ public class ConfigPanel extends JPanel implements PreferencesInterface, KeyList
202 202
 
203 203
     /** {@inheritDoc} */
204 204
     @Override
205
-    public void keyTyped(KeyEvent e) {
205
+    public void keyTyped(final KeyEvent e) {
206 206
         // Do nothing
207 207
     }
208 208
 
209 209
     /** {@inheritDoc} */
210 210
     @Override
211
-    public void keyPressed(KeyEvent e) {
211
+    public void keyPressed(final KeyEvent e) {
212 212
         // Do nothing
213 213
     }
214 214
 
215 215
     /** {@inheritDoc} */
216 216
     @Override
217
-    public void keyReleased(KeyEvent e) {
217
+    public void keyReleased(final KeyEvent e) {
218 218
         if (updateTimer != null) {
219 219
             updateTimer.cancel();
220 220
         }

+ 10
- 10
src/com/dmdirc/addons/nowplaying/MediaSource.java Переглянути файл

@@ -35,69 +35,69 @@ public interface MediaSource {
35 35
      * 
36 36
      * @return True if this source is running, false otherwise
37 37
      */
38
-    public abstract boolean isRunning();
38
+    boolean isRunning();
39 39
     
40 40
     /**
41 41
      * Determine if this source is currently playing or not.
42 42
      * 
43 43
      * @return True if this source is playing, false otherwise
44 44
      */
45
-    public abstract boolean isPlaying();
45
+    boolean isPlaying();
46 46
     
47 47
     /**
48 48
      * Retrieves the name of the application that this source is for.
49 49
      * 
50 50
      * @return This source's application name
51 51
      */
52
-    public abstract String getAppName();
52
+    String getAppName();
53 53
     
54 54
     /**
55 55
      * Retrieves the artist of the curently loaded track.
56 56
      *
57 57
      * @return Current track artist
58 58
      */
59
-    public abstract String getArtist();
59
+    String getArtist();
60 60
     
61 61
     /**
62 62
      * Retrieves the title of the currently loaded track.
63 63
      *
64 64
      * @return Current track title
65 65
      */
66
-    public abstract String getTitle();
66
+    String getTitle();
67 67
     
68 68
     /**
69 69
      * Retrieves the album of the currently loaded track.
70 70
      *
71 71
      * @return Current track album
72 72
      */
73
-    public abstract String getAlbum();
73
+    String getAlbum();
74 74
     
75 75
     /**
76 76
      * Retrieves the length of the currently loaded track ([h:]mm:ss).
77 77
      *
78 78
      * @return Current track length
79 79
      */
80
-    public abstract String getLength();
80
+    String getLength();
81 81
     
82 82
     /**
83 83
      * Retrieves the time of the currently loaded track ([h:]mm:ss).
84 84
      *
85 85
      * @return Current track time
86 86
      */
87
-    public abstract String getTime();
87
+    String getTime();
88 88
     
89 89
     /**
90 90
      * Retrives the format of the currently loaded track.
91 91
      *
92 92
      * @return Current track format
93 93
      */
94
-    public abstract String getFormat();
94
+    String getFormat();
95 95
     
96 96
     /**
97 97
      * Retrieves the bitrate of the currently loaded track.
98 98
      *
99 99
      * @return Current track bitrate
100 100
      */
101
-    public abstract String getBitrate();
101
+    String getBitrate();
102 102
 
103 103
 }

+ 0
- 2
src/com/dmdirc/addons/nowplaying/MediaSourceComparator.java Переглянути файл

@@ -22,8 +22,6 @@
22 22
 
23 23
 package com.dmdirc.addons.nowplaying;
24 24
 
25
-import com.dmdirc.addons.nowplaying.MediaSource;
26
-
27 25
 import java.io.Serializable;
28 26
 import java.util.Comparator;
29 27
 import java.util.List;

+ 1
- 1
src/com/dmdirc/addons/nowplaying/MediaSourceManager.java Переглянути файл

@@ -37,6 +37,6 @@ public interface MediaSourceManager {
37 37
      * 
38 38
      * @return A list of sources that this manager manages
39 39
      */
40
-    public List<MediaSource> getSources();
40
+    List<MediaSource> getSources();
41 41
     
42 42
 }

+ 10
- 4
src/com/dmdirc/addons/nowplaying/NowPlayingPlugin.java Переглянути файл

@@ -38,6 +38,12 @@ import java.util.ArrayList;
38 38
 import java.util.Collections;
39 39
 import java.util.List;
40 40
 
41
+/**
42
+ * Plugin that allows users to advertise what they're currently playing or
43
+ * listening to.
44
+ * 
45
+ * @author chris
46
+ */
41 47
 public class NowPlayingPlugin extends Plugin implements ActionListener  {
42 48
     
43 49
     /** Config domain. */
@@ -49,12 +55,12 @@ public class NowPlayingPlugin extends Plugin implements ActionListener  {
49 55
     /** The now playing command we're registering. */
50 56
     private NowPlayingCommand command;
51 57
     
52
-    /** Config panel. */
53
-    private ConfigPanel configPanel;
54
-    
55 58
     /** The user's preferred order for source usage. */
56 59
     private List<String> order;
57 60
     
61
+    /**
62
+     * Creates a new instance of NowPlayingPlugin.
63
+     */
58 64
     public NowPlayingPlugin() {
59 65
         super();
60 66
     }
@@ -89,7 +95,7 @@ public class NowPlayingPlugin extends Plugin implements ActionListener  {
89 95
     /** {@inheritDoc} */
90 96
     @Override
91 97
     public void showConfig(final PreferencesManager manager) {
92
-        configPanel = new ConfigPanel(this, order);
98
+        final ConfigPanel configPanel = new ConfigPanel(this, order);
93 99
         
94 100
         final PreferencesCategory category = new PreferencesCategory("Now Playing",
95 101
                 "", configPanel);

+ 1
- 1
src/com/dmdirc/addons/redirectplugin/RedirectPlugin.java Переглянути файл

@@ -34,7 +34,7 @@ import com.dmdirc.plugins.Plugin;
34 34
  */
35 35
 public final class RedirectPlugin extends Plugin {
36 36
     
37
-    private RedirectCommand command;
37
+    private final RedirectCommand command;
38 38
     
39 39
     /** Creates a new system tray plugin. */
40 40
     public RedirectPlugin() {

+ 1
- 1
src/com/dmdirc/addons/systray/PopupCommand.java Переглянути файл

@@ -35,7 +35,7 @@ import com.dmdirc.ui.interfaces.InputWindow;
35 35
 public final class PopupCommand extends ServerCommand {
36 36
     
37 37
     /** The SystrayPlugin that we belong to. */
38
-    private SystrayPlugin parent;
38
+    private final SystrayPlugin parent;
39 39
     
40 40
     /**
41 41
      * Creates a new instance of PopupCommand.

+ 3
- 3
src/com/dmdirc/addons/urlcatcher/UrlCatcherPlugin.java Переглянути файл

@@ -78,10 +78,10 @@ public class UrlCatcherPlugin extends Plugin implements ActionListener {
78 78
      * @param url The URL to be added
79 79
      */
80 80
     private void addURL(final String url) {
81
-        if (!urls.containsKey(url)) {
82
-            urls.put(url, 1);
83
-        } else {
81
+        if (urls.containsKey(url)) {
84 82
             urls.put(url, urls.get(url) + 1);
83
+        } else {
84
+            urls.put(url, 1);
85 85
         }
86 86
     }
87 87
     

+ 1
- 1
src/com/dmdirc/commandline/RemoteServer.java Переглянути файл

@@ -49,7 +49,7 @@ public class RemoteServer implements RemoteInterface {
49 49
     
50 50
     /** {@inheritDoc} */
51 51
     @Override
52
-    public void connect(List<IrcAddress> addresses) throws RemoteException {
52
+    public void connect(final List<IrcAddress> addresses) throws RemoteException {
53 53
         for (IrcAddress address : addresses) {
54 54
             address.connect();
55 55
         }

+ 1
- 1
src/com/dmdirc/commandparser/commands/global/AliasCommand.java Переглянути файл

@@ -122,7 +122,7 @@ public final class AliasCommand extends GlobalCommand implements IntelligentComm
122 122
     /** {@inheritDoc} */
123 123
     @Override
124 124
     public AdditionalTabTargets getSuggestions(final int arg, final List<String> previousArgs) {
125
-        AdditionalTabTargets res = new AdditionalTabTargets();
125
+        final AdditionalTabTargets res = new AdditionalTabTargets();
126 126
         
127 127
         if (arg == 0) {
128 128
             res.add("--remove");

+ 1
- 1
src/com/dmdirc/commandparser/commands/global/Debug.java Переглянути файл

@@ -105,7 +105,7 @@ public class Debug extends GlobalCommand implements IntelligentCommand {
105 105
     private void doError(final String ... args) {
106 106
         ErrorLevel el = ErrorLevel.HIGH;
107 107
         if (args.length > 2) {
108
-            String level = args[2];
108
+            final String level = args[2];
109 109
             
110 110
             if (level.equals("low")) {
111 111
                 el = ErrorLevel.LOW;

Завантаження…
Відмінити
Зберегти