commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1752108 - /commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/PropertiesConfigurationLayout.java
Date Sun, 10 Jul 2016 20:05:23 GMT
Author: oheger
Date: Sun Jul 10 20:05:22 2016
New Revision: 1752108

URL: http://svn.apache.org/viewvc?rev=1752108&view=rev
Log:
[CONFIGURATION-636] Changed access to keys when saving a properties configuration.

PropertiesConfigurationLayout.save() now obtains the keys to be
saved from the official getKeys() method. This makes it possible to
override getKeys() to change the order of keys in the generated file.

Thanks to Tim Lark for the proposed change.

Modified:
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/PropertiesConfigurationLayout.java

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/PropertiesConfigurationLayout.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/PropertiesConfigurationLayout.java?rev=1752108&r1=1752107&r2=1752108&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/PropertiesConfigurationLayout.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/PropertiesConfigurationLayout.java
Sun Jul 10 20:05:22 2016
@@ -561,7 +561,7 @@ public class PropertiesConfigurationLayo
                 writer.writeln(null);
             }
 
-            for (String key : layoutData.keySet())
+            for (String key : getKeys())
             {
                 if (config.containsKeyInternal(key))
                 {



Mime
View raw message