Issue #1161 changed comparator
Change-Id: I23f6a1a8b81ab6d97da8b57f7df9adb2d86e1962 Former-commit-id:af27b562d7
[formerlyc78fb26fbf
[formerly 36748378cf53d2ab7c6ba1e49be195d90e2dc385]] Former-commit-id:c78fb26fbf
Former-commit-id:afb00feb6d
This commit is contained in:
parent
7ea2655805
commit
70ccfe678a
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ public class FFMPBasin implements ISerializableObject, Cloneable {
|
|||
@Override
|
||||
public int compare(Date o1, Date o2) {
|
||||
// Null checks?
|
||||
return (o2.before(o1) ? -1 : (o1.equals(o2) ? 0 : 1));
|
||||
return (int)Math.signum(o2.getTime() - o1.getTime()) ;
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue