mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 04:02:09 +08:00
!323 java异常:Comparison method violates its general contract 修复
Merge pull request !323 from 与或非/issues/IBGBLN
This commit is contained in:
@@ -58,10 +58,10 @@ public class CompStatistics implements Comparable<CompStatistics> {
|
||||
|
||||
@Override
|
||||
public int compareTo(CompStatistics o) {
|
||||
if (o != null) {
|
||||
return this.recordTime >= o.getRecordTime() ? -1 : 1;
|
||||
if (o == null) {
|
||||
return 1;
|
||||
}
|
||||
return 1;
|
||||
return Long.compare(o.getRecordTime(), this.recordTime);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user