mirror of
https://github.com/lightbend/config.git
synced 2025-01-15 23:01:05 +08:00
Merge pull request #138 from fnuecke/master
Added ConfigRenderOptions entry for value sorting in objects.
This commit is contained in:
commit
f27265b3f5
@ -7,6 +7,7 @@ import java.io.ObjectStreamException;
|
||||
import java.io.Serializable;
|
||||
import java.util.AbstractMap;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
@ -382,7 +383,9 @@ final class SimpleConfigObject extends AbstractConfigObject implements Serializa
|
||||
}
|
||||
|
||||
int separatorCount = 0;
|
||||
for (String k : keySet()) {
|
||||
String[] keys = keySet().toArray(new String[size()]);
|
||||
Arrays.sort(keys);
|
||||
for (String k : keys) {
|
||||
AbstractConfigValue v;
|
||||
v = value.get(k);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user