You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2017/04/07 06:04:19 UTC

svn commit: r1790506 - in /commons/proper/configuration/trunk/src: changes/changes.xml main/java/org/apache/commons/configuration2/tree/ImmutableNode.java

Author: ggregory
Date: Fri Apr  7 06:04:19 2017
New Revision: 1790506

URL: http://svn.apache.org/viewvc?rev=1790506&view=rev
Log:
[CONFIGURATION-660] Add toString() methods here and there to help debugging.

Modified:
    commons/proper/configuration/trunk/src/changes/changes.xml
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/tree/ImmutableNode.java

Modified: commons/proper/configuration/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/changes/changes.xml?rev=1790506&r1=1790505&r2=1790506&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/changes/changes.xml (original)
+++ commons/proper/configuration/trunk/src/changes/changes.xml Fri Apr  7 06:04:19 2017
@@ -41,6 +41,9 @@
       <action dev="ggregory" type="add" issue="CONFIGURATION-659">
         Add API org.apache.commons.configuration2.ImmutableConfiguration.getURL(String).
       </action>
+      <action dev="ggregory" type="add" issue="CONFIGURATION-660">
+        Add toString() methods here and there to help debugging.
+      </action>
     </release>
 
     <release version="2.1.1" date="2017-02-05"

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/tree/ImmutableNode.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/tree/ImmutableNode.java?rev=1790506&r1=1790505&r2=1790506&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/tree/ImmutableNode.java (original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/tree/ImmutableNode.java Fri Apr  7 06:04:19 2017
@@ -650,4 +650,9 @@ public final class ImmutableNode
             return result;
         }
     }
+
+    @Override
+    public String toString() {
+        return super.toString() + "(" + nodeName + ")";
+    }
 }