logging-commits mailing list archives

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

URL: http://svn.apache.org/r1586408
Log:
Use the variable equivalent.

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=1586408&r1=1586407&r2=1586408&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 18:47:17 2014
@@ -776,7 +776,7 @@ public abstract class AbstractConfigurat
                         boolean first = true;
                         for (final Node child : children) {
                             final PluginType<?> childType = child.getType();
-                            if (elem.value().equalsIgnoreCase(childType.getElementName())
||
+                            if (name.equalsIgnoreCase(childType.getElementName()) ||
                                     parmClass.isAssignableFrom(childType.getPluginClass()))
{
                                 used.add(child);
                                 if (!first) {
@@ -814,7 +814,7 @@ public abstract class AbstractConfigurat
                         boolean present = false;
                         for (final Node child : children) {
                             final PluginType<?> childType = child.getType();
-                            if (elem.value().equals(childType.getElementName()) ||
+                            if (name.equals(childType.getElementName()) ||
                                     parmClass.isAssignableFrom(childType.getPluginClass()))
{
                                 sb.append(child.getName()).append('(').append(child.toString()).append(')');
                                 present = true;



Mime
View raw message