diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-13 09:39:22 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-13 09:39:22 -0700 |
commit | 33733f835e88a62c4a5259ab330723b88037adf1 (patch) | |
tree | f12c710dc4dd6c21a1434f3d699a2fcdd76bb0fa /src/main/java/org/traccar/handler/MotionHandler.java | |
parent | adbeacc62ecb91c94f6cfe7dea8e79b8f5e1c802 (diff) | |
download | trackermap-server-33733f835e88a62c4a5259ab330723b88037adf1.tar.gz trackermap-server-33733f835e88a62c4a5259ab330723b88037adf1.tar.bz2 trackermap-server-33733f835e88a62c4a5259ab330723b88037adf1.zip |
Simplify attribute check
Diffstat (limited to 'src/main/java/org/traccar/handler/MotionHandler.java')
-rw-r--r-- | src/main/java/org/traccar/handler/MotionHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/handler/MotionHandler.java b/src/main/java/org/traccar/handler/MotionHandler.java index 7b2c04ecf..25ee615c5 100644 --- a/src/main/java/org/traccar/handler/MotionHandler.java +++ b/src/main/java/org/traccar/handler/MotionHandler.java @@ -35,7 +35,7 @@ public class MotionHandler extends BaseDataHandler { @Override protected Position handlePosition(Position position) { - if (!position.getAttributes().containsKey(Position.KEY_MOTION)) { + if (!position.hasAttribute(Position.KEY_MOTION)) { position.set(Position.KEY_MOTION, position.getSpeed() > speedThreshold); } return position; |