微调
This commit is contained in:
@@ -1125,14 +1125,13 @@ public class DetectionServiceImpl {
|
||||
|
||||
public List<Double> getDoubles(List<Double> t) {
|
||||
if (CollUtil.isNotEmpty(t)) {
|
||||
if (t == null || t.size() < 2) {
|
||||
return t;
|
||||
}
|
||||
if (t.size() > 2) {
|
||||
Double max = Collections.max(t);
|
||||
Double min = Collections.min(t);
|
||||
t.remove(max);
|
||||
t.remove(min);
|
||||
}
|
||||
}
|
||||
return t;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user