aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/FlespiProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-12-09 22:58:21 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-12-09 22:58:21 +1300
commita991edb432d81a4b5983b78a04e8f8ac9d4d6538 (patch)
tree219d65a67b53d56e4b3215f238994c6f817d3f1d /src/org/traccar/protocol/FlespiProtocolDecoder.java
parent60a58d0c52725892a812a87a11cb2ad3a5d3e73b (diff)
downloadtrackermap-server-a991edb432d81a4b5983b78a04e8f8ac9d4d6538.tar.gz
trackermap-server-a991edb432d81a4b5983b78a04e8f8ac9d4d6538.tar.bz2
trackermap-server-a991edb432d81a4b5983b78a04e8f8ac9d4d6538.zip
Fix code style issues
Diffstat (limited to 'src/org/traccar/protocol/FlespiProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/FlespiProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/FlespiProtocolDecoder.java b/src/org/traccar/protocol/FlespiProtocolDecoder.java
index 5c0670d74..e86a7c607 100644
--- a/src/org/traccar/protocol/FlespiProtocolDecoder.java
+++ b/src/org/traccar/protocol/FlespiProtocolDecoder.java
@@ -104,7 +104,7 @@ public class FlespiProtocolDecoder extends BaseHttpProtocolDecoder {
private boolean decodeParam(String name, int index, JsonValue value, Position position) {
switch (name) {
case "timestamp":
- position.setTime(new Date((((JsonNumber) value).longValue() * 1000)));
+ position.setTime(new Date(((JsonNumber) value).longValue() * 1000));
return true;
case "position.latitude":
position.setLatitude(((JsonNumber) value).doubleValue());
@@ -140,7 +140,7 @@ public class FlespiProtocolDecoder extends BaseHttpProtocolDecoder {
if (position.getInteger(key) == 0) {
position.set(key, 1 << (index - 1));
} else {
- position.set(key, (position.getInteger(key) | 1 << (index - 1)));
+ position.set(key, position.getInteger(key) | 1 << (index - 1));
}
}
return true;