logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1405223 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/AbstractManager.java
Date Fri, 02 Nov 2012 23:54:41 GMT
Author: ggregory
Date: Fri Nov  2 23:54:41 2012
New Revision: 1405223

URL: http://svn.apache.org/viewvc?rev=1405223&view=rev
Log:
Make some svars final.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/AbstractManager.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/AbstractManager.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/AbstractManager.java?rev=1405223&r1=1405222&r2=1405223&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/AbstractManager.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/AbstractManager.java
Fri Nov  2 23:54:41 2012
@@ -36,9 +36,9 @@ public abstract class AbstractManager {
 
     // Need to lock that map instead of using a ConcurrentMap due to stop removing the
     // manager from the map and closing the stream, requiring the whole stop method to be
locked.
-    private static Map<String, AbstractManager> map = new HashMap<String, AbstractManager>();
+    private static final Map<String, AbstractManager> map = new HashMap<String,
AbstractManager>();
 
-    private static Lock lock = new ReentrantLock();
+    private static final Lock lock = new ReentrantLock();
 
     /**
      * Number of Appenders using this manager.



Mime
View raw message