diff options
author | Evgeny S Maksimov <admin@vragam.net> | 2019-01-22 20:05:40 +0300 |
---|---|---|
committer | Evgeny S Maksimov <admin@vragam.net> | 2019-01-22 20:05:40 +0300 |
commit | 38e92f477d95c4361f9b40b14f764fea20e42011 (patch) | |
tree | ee33f2ad3f0a6c086347a33dd1ad11af24536419 /src/org/traccar/protocol | |
parent | 8385061cf3b2374890c9d854d3843cecbc5ae0b9 (diff) | |
download | traccar-server-38e92f477d95c4361f9b40b14f764fea20e42011.tar.gz traccar-server-38e92f477d95c4361f9b40b14f764fea20e42011.tar.bz2 traccar-server-38e92f477d95c4361f9b40b14f764fea20e42011.zip |
Instance variables optimization
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/NavisProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/NavisProtocolDecoder.java b/src/org/traccar/protocol/NavisProtocolDecoder.java index 61c39aaf4..9ea843daa 100644 --- a/src/org/traccar/protocol/NavisProtocolDecoder.java +++ b/src/org/traccar/protocol/NavisProtocolDecoder.java @@ -44,7 +44,6 @@ public class NavisProtocolDecoder extends BaseProtocolDecoder { private int flexDataSize; // Bytes private int flexBitfieldDataSize; // Bits private final byte[] flexBitfield; - private byte flexProtocolVersion, flexStructVersion; private static final Logger LOGGER = LoggerFactory.getLogger(NavisProtocolDecoder.class); private static final int[] FLEX_FIELDS_SIZES = {4, 2, 4, 1, 1, 1, 1, 1, 4, 4, 4, 4, 4, 2, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 4, 4, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, @@ -579,6 +578,8 @@ public class NavisProtocolDecoder extends BaseProtocolDecoder { return null; } + byte flexProtocolVersion, flexStructVersion; + flexProtocolVersion = (byte) buf.readUnsignedByte(); flexStructVersion = (byte) buf.readUnsignedByte(); if (flexProtocolVersion != (byte) 0x0A && flexProtocolVersion != (byte) 0x14) { |