diff options
author | soshial <soshial@gmail.com> | 2021-09-28 11:51:38 +0200 |
---|---|---|
committer | soshial <soshial@gmail.com> | 2021-09-28 11:51:38 +0200 |
commit | 83cff6dd3876fa81d3f3257f1fb3f72cbdf38e70 (patch) | |
tree | 38bb93ac0cec9c0d00cad6fb074ef66350efb695 /src/main/java/org | |
parent | c345945c36b4c93f2f436cf61f89495577d072ea (diff) | |
download | trackermap-server-83cff6dd3876fa81d3f3257f1fb3f72cbdf38e70.tar.gz trackermap-server-83cff6dd3876fa81d3f3257f1fb3f72cbdf38e70.tar.bz2 trackermap-server-83cff6dd3876fa81d3f3257f1fb3f72cbdf38e70.zip |
shorten IF clause
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/handler/FilterHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/handler/FilterHandler.java b/src/main/java/org/traccar/handler/FilterHandler.java index 19d72d8a1..6331ff773 100644 --- a/src/main/java/org/traccar/handler/FilterHandler.java +++ b/src/main/java/org/traccar/handler/FilterHandler.java @@ -74,7 +74,7 @@ public class FilterHandler extends BaseDataHandler { } private boolean filterDuplicate(Position position, Position last) { - if (filterDuplicate && last != null && position.getFixTime().getTime() == last.getFixTime().getTime()) { + if (filterDuplicate && last != null && position.getFixTime().equals(last.getFixTime())) { for (String key : position.getAttributes().keySet()) { if (!last.getAttributes().containsKey(key)) { return false; |