Console: Remove brackets on /debug update and app manager sections and other cleanups for readability

This commit is contained in:
zzz
2022-11-23 09:06:01 -05:00
parent 77bf7f1658
commit fb14907fa8
2 changed files with 7 additions and 7 deletions

View File

@ -1651,7 +1651,7 @@ public class ConsoleUpdateManager implements UpdateManager, RouterApp {
@Override
public String toString() {
return "RegisteredChecker " + checker.getClass().getName() + " for " + type + " (" + method + ") @pri " + priority;
return "RegisteredChecker " + checker.getClass().getName() + " for " + type + " (" + method + ") @priority " + priority;
}
}
@ -1683,8 +1683,8 @@ public class ConsoleUpdateManager implements UpdateManager, RouterApp {
@Override
public String toString() {
if ("".equals(id))
return "UpdateItem " + type;
return "UpdateItem " + type + ' ' + id;
return type.toString();
return type.toString() + ' ' + id;
}
}
@ -1807,7 +1807,7 @@ public class ConsoleUpdateManager implements UpdateManager, RouterApp {
}
Collections.sort(list);
for (String e : list) {
buf.append("[").append(e).append("]<br>");
buf.append(e).append("<br>");
}
}
@ -1817,7 +1817,7 @@ public class ConsoleUpdateManager implements UpdateManager, RouterApp {
for (Map.Entry<?, ?> entry : map.entrySet()) {
String key = entry.getKey().toString();
String val = entry.getValue().toString();
list.add("[" + key + "] = " + val + "<br>");
list.add("<b>" + key + ":</b> " + val + "<br>");
}
Collections.sort(list);
for (String e : list) {

View File

@ -249,7 +249,7 @@ public class RouterAppManager extends ClientAppManagerImpl {
for (Map.Entry<ClientApp, String[]> entry : _clients.entrySet()) {
ClientApp key = entry.getKey();
String[] val = entry.getValue();
list.add("[<b>" + key.getName() + "</b>] = [" + key.getClass().getName() + ' ' + Arrays.toString(val) + "] <i>" + key.getState() + "</i><br>");
list.add("<b>" + key.getName() + "</b>: " + key.getClass().getName() + ' ' + Arrays.toString(val) + " <i>" + key.getState() + "</i><br>");
}
Collections.sort(list, Collator.getInstance());
for (String e : list) {
@ -266,7 +266,7 @@ public class RouterAppManager extends ClientAppManagerImpl {
for (Map.Entry<String, ClientApp> entry : _registered.entrySet()) {
String key = entry.getKey();
ClientApp val = entry.getValue();
list.add("[<b>" + key + "</b>] = [" + val.getClass().getName() + "]<br>");
list.add("<b>" + key + ":</b> " + val.getClass().getName() + "<br>");
}
Collections.sort(list, Collator.getInstance());
for (String e : list) {