geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aba...@apache.org
Subject incubator-geode git commit: GEODE-1809: Improve printing
Date Sat, 03 Sep 2016 02:57:38 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/develop fac42cbc2 -> bb829d3dc


GEODE-1809: Improve printing

Sort the properties so they look pretty.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/bb829d3d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/bb829d3d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/bb829d3d

Branch: refs/heads/develop
Commit: bb829d3dcaa7105d517868a6fc060981e95643f3
Parents: fac42cb
Author: Anthony Baker <abaker@apache.org>
Authored: Fri Sep 2 19:55:52 2016 -0700
Committer: Anthony Baker <abaker@apache.org>
Committed: Fri Sep 2 19:57:32 2016 -0700

----------------------------------------------------------------------
 .../main/java/com/gemstone/gemfire/internal/GemFireVersion.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/bb829d3d/geode-core/src/main/java/com/gemstone/gemfire/internal/GemFireVersion.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/com/gemstone/gemfire/internal/GemFireVersion.java b/geode-core/src/main/java/com/gemstone/gemfire/internal/GemFireVersion.java
index 0d0bd58..d8fa21b 100644
--- a/geode-core/src/main/java/com/gemstone/gemfire/internal/GemFireVersion.java
+++ b/geode-core/src/main/java/com/gemstone/gemfire/internal/GemFireVersion.java
@@ -26,6 +26,7 @@ import java.util.Map.Entry;
 import java.util.Optional;
 import java.util.Properties;
 import java.util.StringTokenizer;
+import java.util.TreeMap;
 
 import com.gemstone.gemfire.InternalGemFireError;
 import com.gemstone.gemfire.SystemFailure;
@@ -217,7 +218,7 @@ public class GemFireVersion {
       if (error.isPresent()) {
         pw.println(error.get());
       } else {
-        for (Entry<?,?> props : description.entrySet()) {
+        for (Entry<?,?> props : new TreeMap<>(description).entrySet()) {
           pw.println(props.getKey() + ": " + props.getValue());
         }
       }


Mime
View raw message