瀏覽代碼

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 年之前
父節點
當前提交
344f5a5723
共有 3 個文件被更改,包括 9 次插入9 次删除
  1. 1
    1
      src/com/dmdirc/CustomWindow.java
  2. 7
    7
      src/com/dmdirc/FrameContainer.java
  3. 1
    1
      src/com/dmdirc/Invite.java

+ 1
- 1
src/com/dmdirc/CustomWindow.java 查看文件

@@ -43,7 +43,7 @@ public class CustomWindow extends FrameContainer {
43 43
     private Window window;
44 44
 
45 45
     /** This window's parent window. */
46
-    private Window parent = null;
46
+    private Window parent;
47 47
 
48 48
     /**
49 49
      * Creates a new custom window as a child of the specified window.

+ 7
- 7
src/com/dmdirc/FrameContainer.java 查看文件

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

+ 1
- 1
src/com/dmdirc/Invite.java 查看文件

@@ -104,4 +104,4 @@ public class Invite {
104 104
         server.removeInvite(this);
105 105
     }
106 106
     
107
-}
107
+}

Loading…
取消
儲存