logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1396293 - /logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java
Date Tue, 09 Oct 2012 20:21:23 GMT
Author: ggregory
Date: Tue Oct  9 20:21:22 2012
New Revision: 1396293

URL: http://svn.apache.org/viewvc?rev=1396293&view=rev
Log:
Make ivar and svar final.

Modified:
    logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java

Modified: logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java?rev=1396293&r1=1396292&r2=1396293&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java
(original)
+++ logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java
Tue Oct  9 20:21:22 2012
@@ -48,15 +48,15 @@ public final class StatusLogger extends 
 
     // private static final String FQCN = AbstractLogger.class.getName();
 
-    private static StatusLogger statusLogger = new StatusLogger();
+    private static final StatusLogger statusLogger = new StatusLogger();
 
-    private Logger logger = null;
+    private Logger logger;
 
-    private CopyOnWriteArrayList<StatusListener> listeners = new CopyOnWriteArrayList<StatusListener>();
-    private ReentrantReadWriteLock listenersLock = new ReentrantReadWriteLock();
+    private final CopyOnWriteArrayList<StatusListener> listeners = new CopyOnWriteArrayList<StatusListener>();
+    private final ReentrantReadWriteLock listenersLock = new ReentrantReadWriteLock();
 
-    private Queue<StatusData> messages = new BoundedQueue<StatusData>(MAX_ENTRIES);
-    private ReentrantLock msgLock = new ReentrantLock();
+    private final Queue<StatusData> messages = new BoundedQueue<StatusData>(MAX_ENTRIES);
+    private final ReentrantLock msgLock = new ReentrantLock();
 
     private StatusLogger() {
     }



Mime
View raw message