Skip to content

Commit

Permalink
Sort attributes in Probe (https://issues.jboss.org/browse/JGRP-2066)
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Jun 27, 2016
1 parent 3489e07 commit e321303
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/org/jgroups/JChannel.java
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ protected TimeScheduler getTimer() {
class MyProbeHandler implements DiagnosticsHandler.ProbeHandler {

public Map<String, String> handleProbe(String... keys) {
Map<String, String> map=new HashMap<>(3);
Map<String, String> map=new TreeMap<>();
for(String key: keys) {
if(key.startsWith("jmx")) {
handleJmx(map, key);
Expand Down
2 changes: 1 addition & 1 deletion src/org/jgroups/stack/Protocol.java
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public String printStats() {
}

public Map<String,Object> dumpStats() {
HashMap<String,Object> map=new HashMap<>();
Map<String,Object> map=new TreeMap<>();
for(Class<?> clazz=this.getClass();clazz != null;clazz=clazz.getSuperclass()) {
Field[] fields=clazz.getDeclaredFields();
for(Field field: fields) {
Expand Down

0 comments on commit e321303

Please sign in to comment.