logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattsic...@apache.org
Subject svn commit: r1586485 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AbstractConfiguration.java
Date Thu, 10 Apr 2014 22:17:38 GMT
Author: mattsicker
Date: Thu Apr 10 22:17:38 2014
New Revision: 1586485

URL: http://svn.apache.org/r1586485
Log:
Move variables closer to actual scope.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AbstractConfiguration.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AbstractConfiguration.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AbstractConfiguration.java?rev=1586485&r1=1586484&r2=1586485&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AbstractConfiguration.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AbstractConfiguration.java
Thu Apr 10 22:17:38 2014
@@ -296,8 +296,6 @@ public abstract class AbstractConfigurat
 
     @SuppressWarnings("unchecked")
     protected void doConfigure() {
-        boolean setRoot = false;
-        boolean setLoggers = false;
         if (rootNode.hasChildren() && rootNode.getChildren().get(0).getName().equalsIgnoreCase("Properties"))
{
             Node first = rootNode.getChildren().get(0);
             createConfiguration(first, null);
@@ -310,6 +308,8 @@ public abstract class AbstractConfigurat
             subst.setVariableResolver(new Interpolator(lookup));
         }
 
+        boolean setLoggers = false;
+        boolean setRoot = false;
         for (final Node child : rootNode.getChildren()) {
             if (child.getName().equalsIgnoreCase("Properties")) {
                 if (tempLookup == subst.getVariableResolver()) {



Mime
View raw message