You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2014/04/10 20:47:18 UTC

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

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;