Fixed buggy LogEntry.compareTo() method
This commit is contained in:
@@ -164,7 +164,7 @@ public final class LoggerRAM {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compareTo(@NonNull LogEntry another) {
|
public int compareTo(@NonNull LogEntry another) {
|
||||||
return (timestamp < another.timestamp) ? (-1) : (+1);
|
return Long.compare(timestamp, another.timestamp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user