mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
refactor
This commit is contained in:
@@ -283,7 +283,11 @@ public final class DruidStatService implements DruidStatServiceMBean {
|
||||
if (tables != null) {
|
||||
List<Map<String, Object>> sortedArray = comparatorOrderBy(tables, parameters);
|
||||
result.put("tables", sortedArray);
|
||||
sortedArray = comparatorOrderBy((List<Map<String, Object>>) result.get("functions"), parameters);
|
||||
}
|
||||
|
||||
List<Map<String, Object>> functions = (List<Map<String, Object>>) result.get("functions");
|
||||
if (functions != null) {
|
||||
List<Map<String, Object>> sortedArray = comparatorOrderBy(functions, parameters);
|
||||
result.put("functions", sortedArray);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user