logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1396179 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
Date Tue, 09 Oct 2012 18:38:32 GMT
Author: ggregory
Date: Tue Oct  9 18:38:31 2012
New Revision: 1396179

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

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

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java?rev=1396179&r1=1396178&r2=1396179&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
Tue Oct  9 18:38:31 2012
@@ -38,7 +38,7 @@ import java.util.concurrent.locks.Reentr
  */
 public class LoggerContext implements org.apache.logging.log4j.spi.LoggerContext, ConfigurationListener,
Lifecycle {
 
-    private static StatusLogger logger = StatusLogger.getLogger();
+    private static final StatusLogger logger = StatusLogger.getLogger();
 
     private final ConcurrentMap<String, Logger> loggers = new ConcurrentHashMap<String,
Logger>();
 
@@ -48,7 +48,7 @@ public class LoggerContext implements or
      */
     private volatile Configuration config = new DefaultConfiguration();
 
-    private Object externalContext = null;
+    private Object externalContext;
 
     private final String name;
 
@@ -72,7 +72,7 @@ public class LoggerContext implements or
 
     private volatile Status status = Status.INITIALIZED;
 
-    private Lock configLock = new ReentrantLock();
+    private final Lock configLock = new ReentrantLock();
 
     /**
      * Constructor taking only a name.



Mime
View raw message