Author: ggregory
Date: Fri Apr  6 23:00:55 2018
New Revision: 1828575

URL: http://svn.apache.org/viewvc?rev=1828575&view=rev
Log:
[CONFIGURATION-698] Add 
org.apache.commons.configuration2.MapConfiguration.toString().

Modified:
    commons/proper/configuration/trunk/src/changes/changes.xml
    
commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/MapConfiguration.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=1828575&r1=1828574&r2=1828575&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/changes/changes.xml (original)
+++ commons/proper/configuration/trunk/src/changes/changes.xml Fri Apr  6 
23:00:55 2018
@@ -84,6 +84,9 @@
         Configuration properties can now be converted to the data types File
         and Path.
       </action>
+      <action dev="ggregory" type="add" issue="CONFIGURATION-698">
+        Add org.apache.commons.configuration2.MapConfiguration.toString().
+      </action>
     </release>
 
     <release version="2.2" date="2017-10-12"

Modified: 
commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/MapConfiguration.java
URL: 
http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/MapConfiguration.java?rev=1828575&r1=1828574&r2=1828575&view=diff
==============================================================================
--- 
commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/MapConfiguration.java
 (original)
+++ 
commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/MapConfiguration.java
 Fri Apr  6 23:00:55 2018
@@ -276,4 +276,14 @@ public class MapConfiguration extends Ab
         Map map = props;
         return map;
     }
+
+    /**
+     * Converts this object to a String suitable for debugging and logging.
+     * 
+     * @since 2.3
+     */
+    @Override
+    public String toString() {
+        return getClass().getSimpleName() + " [map=" + map + ", 
trimmingDisabled=" + trimmingDisabled + "]";
+    }
 }


Reply via email to