From e21553135bfa7a5dc34fdd523564e6418b7a13ea Mon Sep 17 00:00:00 2001 From: Robert Godfrey Date: Thu, 21 Aug 2014 09:34:40 +0000 Subject: QPID-6027 : [Java Broker] Sort statistics git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1619323 13f79535-47bb-0310-9956-ffa450edef68 --- .../plugin/servlet/rest/ConfiguredObjectToMapConverter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qpid/java/broker-plugins') diff --git a/qpid/java/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet/rest/ConfiguredObjectToMapConverter.java b/qpid/java/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet/rest/ConfiguredObjectToMapConverter.java index a444f9e2e4..c8bce09485 100644 --- a/qpid/java/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet/rest/ConfiguredObjectToMapConverter.java +++ b/qpid/java/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet/rest/ConfiguredObjectToMapConverter.java @@ -31,6 +31,7 @@ import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; +import java.util.TreeMap; import org.apache.qpid.server.model.ConfiguredObject; @@ -152,10 +153,10 @@ public class ConfiguredObjectToMapConverter } private void incorporateStatisticsIntoMap( - final ConfiguredObject confObject, Map object) + final ConfiguredObject confObject, Map object) { - Map statMap = confObject.getStatistics(); + Map statMap = new TreeMap(confObject.getStatistics()); if(!statMap.isEmpty()) { -- cgit v1.2.1