aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/FlextrackProtocolDecoder.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/FlextrackProtocolDecoder.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/FlextrackProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/FlextrackProtocolDecoder.java15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/org/traccar/protocol/FlextrackProtocolDecoder.java b/src/org/traccar/protocol/FlextrackProtocolDecoder.java
index 9723eda02..ec0f0a05c 100644
--- a/src/org/traccar/protocol/FlextrackProtocolDecoder.java
+++ b/src/org/traccar/protocol/FlextrackProtocolDecoder.java
@@ -15,19 +15,16 @@
*/
package org.traccar.protocol;
-import org.jboss.netty.channel.Channel;
-import org.traccar.BaseProtocolDecoder;
-import org.traccar.helper.Crc;
-import org.traccar.helper.PatternUtil;
-import org.traccar.helper.UnitsConverter;
-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.helper.UnitsConverter;
+import org.traccar.model.Event;
+import org.traccar.model.Position;
public class FlextrackProtocolDecoder extends BaseProtocolDecoder {
@@ -99,8 +96,6 @@ public class FlextrackProtocolDecoder extends BaseProtocolDecoder {
} else if (sentence.contains("UNITSTAT") && hasDeviceId()) {
- String x = PatternUtil.checkPattern(pattern.pattern(), sentence);
-
Matcher parser = pattern.matcher(sentence);
if (!parser.matches()) {
return null;