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