diff options
author | Alexandre Truppel <alex.truppel@gmail.com> | 2023-02-22 15:58:43 +0100 |
---|---|---|
committer | Alexandre Truppel <alex.truppel@gmail.com> | 2023-02-22 15:58:43 +0100 |
commit | 6c4f99117bbd3645f3b55852b2148beb28c1e0f9 (patch) | |
tree | 79202ab07ff348cc17e5b1c3f4364f75613a8590 /src/main | |
parent | ba6a9d72e62282d64781b856b8e094e1fb612f9e (diff) | |
download | trackermap-server-6c4f99117bbd3645f3b55852b2148beb28c1e0f9.tar.gz trackermap-server-6c4f99117bbd3645f3b55852b2148beb28c1e0f9.tar.bz2 trackermap-server-6c4f99117bbd3645f3b55852b2148beb28c1e0f9.zip |
Corrected styling
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/protocol/WialonProtocolDecoder.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main/java/org/traccar/protocol/WialonProtocolDecoder.java b/src/main/java/org/traccar/protocol/WialonProtocolDecoder.java index e2ccfe9d8..baf3847a1 100644 --- a/src/main/java/org/traccar/protocol/WialonProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/WialonProtocolDecoder.java @@ -148,15 +148,14 @@ public class WialonProtocolDecoder extends BaseProtocolDecoder { // (true, yes, etc), in which case we convert into a boolean try { - double double_value = Double.parseDouble(value); + double doubleValue = Double.parseDouble(value); // Since accuracy is not part of the general parameter list, // we need to handle it separately by calling setAccuracy directly if (key.equals("accuracy")) { - position.setAccuracy(double_value); - } - else { - position.set(key, double_value); + position.setAccuracy(doubleValue); + } else { + position.set(key, doubleValue); } } catch (NumberFormatException e) { if (value.equalsIgnoreCase("true") || value.equalsIgnoreCase("t") |