aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsoshial <soshial@gmail.com>2021-09-28 11:51:38 +0200
committersoshial <soshial@gmail.com>2021-09-28 11:51:38 +0200
commit83cff6dd3876fa81d3f3257f1fb3f72cbdf38e70 (patch)
tree38bb93ac0cec9c0d00cad6fb074ef66350efb695 /src
parentc345945c36b4c93f2f436cf61f89495577d072ea (diff)
downloadtrackermap-server-83cff6dd3876fa81d3f3257f1fb3f72cbdf38e70.tar.gz
trackermap-server-83cff6dd3876fa81d3f3257f1fb3f72cbdf38e70.tar.bz2
trackermap-server-83cff6dd3876fa81d3f3257f1fb3f72cbdf38e70.zip
shorten IF clause
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/handler/FilterHandler.java2
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;