activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [2/3] activemq-artemis git commit: ARTEMIS-1195: change filters datatype to LinkedHashMap on cli create
Date Tue, 30 May 2017 22:59:16 GMT
 ARTEMIS-1195: change filters datatype to LinkedHashMap on cli create


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/6da035ba
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/6da035ba
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/6da035ba

Branch: refs/heads/master
Commit: 6da035bafa364853fbe900976d009332313c8c65
Parents: 9197998
Author: 老袁 <17010538@cn.suning.com>
Authored: Tue May 30 15:59:46 2017 +0800
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Tue May 30 18:58:37 2017 -0400

----------------------------------------------------------------------
 .../java/org/apache/activemq/artemis/cli/commands/Create.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6da035ba/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java
----------------------------------------------------------------------
diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java
b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java
index 49999cc..aabb3fe 100644
--- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java
+++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java
@@ -30,6 +30,7 @@ import java.io.StringWriter;
 import java.nio.charset.StandardCharsets;
 import java.text.DecimalFormat;
 import java.util.HashMap;
+import java.util.LinkedHashMap;
 import java.util.Map;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
@@ -483,7 +484,7 @@ public class Create extends InputAbstract {
 
       context.out.println(String.format("Creating ActiveMQ Artemis instance at: %s", directory.getCanonicalPath()));
 
-      HashMap<String, String> filters = new HashMap<>();
+      HashMap<String, String> filters = new LinkedHashMap<>();
 
       filters.put("${master-slave}", isSlave() ? "slave" : "master");
 


Mime
View raw message