qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rob...@apache.org
Subject [2/6] qpid-jms git commit: use a LinkedHashMap to give more consistent iteration order for the output properties
Date Tue, 27 Jan 2015 14:42:43 GMT
use a LinkedHashMap to give more consistent iteration order for the output properties


Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/2afe8f72
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/2afe8f72
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/2afe8f72

Branch: refs/heads/master
Commit: 2afe8f72cded1291efb09670f51abfb64422281e
Parents: d4551c4
Author: Robert Gemmell <robbie@apache.org>
Authored: Tue Jan 27 12:51:34 2015 +0000
Committer: Robert Gemmell <robbie@apache.org>
Committed: Tue Jan 27 14:42:04 2015 +0000

----------------------------------------------------------------------
 .../src/main/java/org/apache/qpid/jms/jndi/JNDIStorable.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/2afe8f72/qpid-jms-client/src/main/java/org/apache/qpid/jms/jndi/JNDIStorable.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/main/java/org/apache/qpid/jms/jndi/JNDIStorable.java b/qpid-jms-client/src/main/java/org/apache/qpid/jms/jndi/JNDIStorable.java
index cc04de8..866f971 100644
--- a/qpid-jms-client/src/main/java/org/apache/qpid/jms/jndi/JNDIStorable.java
+++ b/qpid-jms-client/src/main/java/org/apache/qpid/jms/jndi/JNDIStorable.java
@@ -20,7 +20,7 @@ import java.io.Externalizable;
 import java.io.IOException;
 import java.io.ObjectInput;
 import java.io.ObjectOutput;
-import java.util.HashMap;
+import java.util.LinkedHashMap;
 import java.util.Map;
 
 import javax.naming.NamingException;
@@ -63,7 +63,7 @@ public abstract class JNDIStorable implements Referenceable, Externalizable
{
      * @return the properties
      */
     public synchronized Map<String, String> getProperties() {
-        HashMap<String, String> properties = new HashMap<String, String>();
+        Map<String, String> properties = new LinkedHashMap<String, String>();
         populateProperties(properties);
         return properties;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message