Browse Source

Checkstyle fixes

Does not impact functionality

git-svn-id: http://svn.dmdirc.com/trunk@4492 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Chris Smith 16 years ago
parent
commit
344f5a5723

+ 1
- 1
src/com/dmdirc/CustomWindow.java View File

43
     private Window window;
43
     private Window window;
44
 
44
 
45
     /** This window's parent window. */
45
     /** This window's parent window. */
46
-    private Window parent = null;
46
+    private Window parent;
47
 
47
 
48
     /**
48
     /**
49
      * Creates a new custom window as a child of the specified window.
49
      * Creates a new custom window as a child of the specified window.

+ 7
- 7
src/com/dmdirc/FrameContainer.java View File

165
         // TODO: This should default ot something colour independent
165
         // TODO: This should default ot something colour independent
166
         notification = Color.BLACK;
166
         notification = Color.BLACK;
167
 
167
 
168
-        synchronized(listeners) {
168
+        synchronized (listeners) {
169
             for (NotificationListener listener : listeners.get(NotificationListener.class)) {
169
             for (NotificationListener listener : listeners.get(NotificationListener.class)) {
170
                 listener.notificationCleared(getFrame());
170
                 listener.notificationCleared(getFrame());
171
             }
171
             }
184
                 && !colour.equals(notification)) {
184
                 && !colour.equals(notification)) {
185
             notification = colour;
185
             notification = colour;
186
 
186
 
187
-            synchronized(listeners) {
187
+            synchronized (listeners) {
188
                 for (NotificationListener listener : listeners.get(NotificationListener.class)) {
188
                 for (NotificationListener listener : listeners.get(NotificationListener.class)) {
189
                     listener.notificationSet(getFrame(), colour);
189
                     listener.notificationSet(getFrame(), colour);
190
                 }
190
                 }
257
             }
257
             }
258
         }
258
         }
259
 
259
 
260
-        synchronized(listeners) {
260
+        synchronized (listeners) {
261
             for (SelectionListener listener : listeners.get(SelectionListener.class)) {
261
             for (SelectionListener listener : listeners.get(SelectionListener.class)) {
262
                 listener.selectionChanged(getFrame());
262
                 listener.selectionChanged(getFrame());
263
             }
263
             }
309
      * @param listener The listener to be added
309
      * @param listener The listener to be added
310
      */
310
      */
311
     public void addNotificationListener(final NotificationListener listener) {
311
     public void addNotificationListener(final NotificationListener listener) {
312
-        synchronized(listeners) {
312
+        synchronized (listeners) {
313
             listeners.add(NotificationListener.class, listener);
313
             listeners.add(NotificationListener.class, listener);
314
         }
314
         }
315
     }
315
     }
320
      * @param listener The listener to be removed
320
      * @param listener The listener to be removed
321
      */
321
      */
322
     public void removeNotificationListener(final NotificationListener listener) {
322
     public void removeNotificationListener(final NotificationListener listener) {
323
-        synchronized(listeners) {
323
+        synchronized (listeners) {
324
             listeners.remove(NotificationListener.class, listener);
324
             listeners.remove(NotificationListener.class, listener);
325
         }
325
         }
326
     }
326
     }
331
      * @param listener The listener to be added
331
      * @param listener The listener to be added
332
      */
332
      */
333
     public void addSelectionListener(final SelectionListener listener) {
333
     public void addSelectionListener(final SelectionListener listener) {
334
-        synchronized(listeners) {
334
+        synchronized (listeners) {
335
             listeners.add(SelectionListener.class, listener);
335
             listeners.add(SelectionListener.class, listener);
336
         }
336
         }
337
     }
337
     }
342
      * @param listener The listener to be removed
342
      * @param listener The listener to be removed
343
      */
343
      */
344
     public void removeSelectionListener(final SelectionListener listener) {
344
     public void removeSelectionListener(final SelectionListener listener) {
345
-        synchronized(listeners) {
345
+        synchronized (listeners) {
346
             listeners.remove(SelectionListener.class, listener);
346
             listeners.remove(SelectionListener.class, listener);
347
         }
347
         }
348
     }
348
     }

+ 1
- 1
src/com/dmdirc/Invite.java View File

104
         server.removeInvite(this);
104
         server.removeInvite(this);
105
     }
105
     }
106
     
106
     
107
-}
107
+}

Loading…
Cancel
Save