aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Gt06ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-09 13:07:02 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-07-09 13:07:02 +1200
commit70d22de4205aec294660378f0d854cbc32c7a6b8 (patch)
treeb425bcf00113b3d8bb65ba160a7723f66e12a977 /src/org/traccar/protocol/Gt06ProtocolDecoder.java
parent32c836e90bd75e68cac1d704b048a3c4ff22775f (diff)
downloadtrackermap-server-70d22de4205aec294660378f0d854cbc32c7a6b8.tar.gz
trackermap-server-70d22de4205aec294660378f0d854cbc32c7a6b8.tar.bz2
trackermap-server-70d22de4205aec294660378f0d854cbc32c7a6b8.zip
Fix code analytics issues
Diffstat (limited to 'src/org/traccar/protocol/Gt06ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Gt06ProtocolDecoder.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java
index 12c9d20b5..ce915fde8 100644
--- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java
@@ -271,9 +271,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
} else if (header == 0x7979) {
- int length = buf.readUnsignedShort();
- int dataLength = length - 6;
-
+ buf.readUnsignedShort(); // length
int type = buf.readUnsignedByte();
if (type == MSG_INFO) {