diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-04 13:58:50 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-04 13:58:50 +1300 |
commit | 7a80a011789dced9db2c6cdc65cb327d87a6d2b1 (patch) | |
tree | 5a3c4dd7ef7976fd4ed5add55afebb7e412da8e8 /src/org/traccar/protocol/GpsMarkerProtocolDecoder.java | |
parent | fcfd745a4e234c2f8c0364bbc462460bc20da8e2 (diff) | |
download | trackermap-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/GpsMarkerProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/GpsMarkerProtocolDecoder.java | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/org/traccar/protocol/GpsMarkerProtocolDecoder.java b/src/org/traccar/protocol/GpsMarkerProtocolDecoder.java index 3c095853f..2b2f286c0 100644 --- a/src/org/traccar/protocol/GpsMarkerProtocolDecoder.java +++ b/src/org/traccar/protocol/GpsMarkerProtocolDecoder.java @@ -15,16 +15,15 @@ */ package org.traccar.protocol; -import org.jboss.netty.channel.Channel; -import org.traccar.BaseProtocolDecoder; -import org.traccar.model.Event; -import org.traccar.model.Position; - import java.net.SocketAddress; import java.util.Calendar; import java.util.TimeZone; import java.util.regex.Matcher; import java.util.regex.Pattern; +import org.jboss.netty.channel.Channel; +import org.traccar.BaseProtocolDecoder; +import org.traccar.model.Event; +import org.traccar.model.Position; public class GpsMarkerProtocolDecoder extends BaseProtocolDecoder { @@ -52,8 +51,6 @@ public class GpsMarkerProtocolDecoder extends BaseProtocolDecoder { "(\\d{3})" + // Temperature ".*"); - private static final Pattern handshakePattern = Pattern.compile("##,imei:(\\d+),A"); - @Override protected Object decode( Channel channel, SocketAddress remoteAddress, Object msg) |