You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by oh...@apache.org on 2016/07/10 20:05:23 UTC
svn commit: r1752108 -
/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/PropertiesConfigurationLayout.java
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))
{