aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/SuntechProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-09-02 09:52:27 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-09-02 09:52:27 +1200
commit9bb5da56efe20fcf618751d5bb02bf19ba215c74 (patch)
tree936f22539fe9c399c91483597b4a93d2594ea5c5 /src/org/traccar/protocol/SuntechProtocolDecoder.java
parent5e0f914657067256827ebb6ec0c478e8b809d4d7 (diff)
downloadtrackermap-server-9bb5da56efe20fcf618751d5bb02bf19ba215c74.tar.gz
trackermap-server-9bb5da56efe20fcf618751d5bb02bf19ba215c74.tar.bz2
trackermap-server-9bb5da56efe20fcf618751d5bb02bf19ba215c74.zip
Fix code analysis issues
Diffstat (limited to 'src/org/traccar/protocol/SuntechProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/SuntechProtocolDecoder.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/SuntechProtocolDecoder.java b/src/org/traccar/protocol/SuntechProtocolDecoder.java
index ec764774d..68c920899 100644
--- a/src/org/traccar/protocol/SuntechProtocolDecoder.java
+++ b/src/org/traccar/protocol/SuntechProtocolDecoder.java
@@ -176,10 +176,8 @@ public class SuntechProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_BATTERY, Double.parseDouble(values[index++]));
}
- if (index < values.length) {
- if (values[index++].equals("0")) {
- position.set(Position.KEY_ARCHIVE, true);
- }
+ if (index < values.length && values[index++].equals("0")) {
+ position.set(Position.KEY_ARCHIVE, true);
}
if (includeAdc) {