|
|
|
@ -18,6 +18,7 @@ package org.springframework.boot.actuate.health;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.Collections;
|
|
|
|
|
import java.util.Comparator;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
@ -61,7 +62,7 @@ public class OrderedHealthAggregator implements HealthAggregator {
|
|
|
|
|
return Status.UNKOWN;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
status.sort(new Comparator<Status>() {
|
|
|
|
|
Collections.sort(status, new Comparator<Status>() {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public int compare(Status s1, Status s2) {
|
|
|
|
|