Fixed buggy LogEntry.compareTo() method

This commit is contained in:
2019-09-24 11:37:29 +02:00
parent e344fbbfef
commit 76bd80382e

View File

@@ -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);
} }
} }