aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/ProgressProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-04 13:58:50 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-04 13:58:50 +1300
commit7a80a011789dced9db2c6cdc65cb327d87a6d2b1 (patch)
tree5a3c4dd7ef7976fd4ed5add55afebb7e412da8e8 /src/org/traccar/protocol/ProgressProtocolDecoder.java
parentfcfd745a4e234c2f8c0364bbc462460bc20da8e2 (diff)
downloadtrackermap-server-7a80a011789dced9db2c6cdc65cb327d87a6d2b1.tar.gz
trackermap-server-7a80a011789dced9db2c6cdc65cb327d87a6d2b1.tar.bz2
trackermap-server-7a80a011789dced9db2c6cdc65cb327d87a6d2b1.zip
Fix some PMD reported bugs
Diffstat (limited to 'src/org/traccar/protocol/ProgressProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/ProgressProtocolDecoder.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/ProgressProtocolDecoder.java b/src/org/traccar/protocol/ProgressProtocolDecoder.java
index b8f3e48ca..4ff7e8f68 100644
--- a/src/org/traccar/protocol/ProgressProtocolDecoder.java
+++ b/src/org/traccar/protocol/ProgressProtocolDecoder.java
@@ -15,18 +15,16 @@
*/
package org.traccar.protocol;
+import java.net.SocketAddress;
import java.nio.ByteOrder;
import java.nio.charset.Charset;
-import java.net.SocketAddress;
import java.util.Calendar;
import java.util.LinkedList;
import java.util.List;
import java.util.TimeZone;
-
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.ChannelBuffers;
import org.jboss.netty.channel.Channel;
-
import org.traccar.BaseProtocolDecoder;
import org.traccar.model.Event;
import org.traccar.model.Position;
@@ -74,7 +72,7 @@ public class ProgressProtocolDecoder extends BaseProtocolDecoder {
// Authentication
if (type == MSG_IDENT || type == MSG_IDENT_FULL) {
- long id = buf.readUnsignedInt();
+ buf.readUnsignedInt(); // id
int length = buf.readUnsignedShort();
buf.skipBytes(length);
length = buf.readUnsignedShort();