aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/GoSafeProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-01-23 10:46:10 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-01-23 10:46:10 +1300
commitad7bdd5a5fe04841c941860a98501eef2a00207b (patch)
treef5b36da2a7d40acb5ca4ed25e27675de39f5fc26 /src/org/traccar/protocol/GoSafeProtocolDecoder.java
parent2e24e0e311606d7b12b9e36f113dd218e54d67bb (diff)
downloadtrackermap-server-ad7bdd5a5fe04841c941860a98501eef2a00207b.tar.gz
trackermap-server-ad7bdd5a5fe04841c941860a98501eef2a00207b.tar.bz2
trackermap-server-ad7bdd5a5fe04841c941860a98501eef2a00207b.zip
Fix checkstyle issues in the project
Diffstat (limited to 'src/org/traccar/protocol/GoSafeProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/GoSafeProtocolDecoder.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/GoSafeProtocolDecoder.java b/src/org/traccar/protocol/GoSafeProtocolDecoder.java
index 8be462ebf..dc9298e71 100644
--- a/src/org/traccar/protocol/GoSafeProtocolDecoder.java
+++ b/src/org/traccar/protocol/GoSafeProtocolDecoder.java
@@ -165,7 +165,10 @@ public class GoSafeProtocolDecoder extends BaseProtocolDecoder {
}
String sentence = (String) msg;
- Pattern pattern = sentence.startsWith("*GS02") ? PATTERN_OLD : PATTERN;
+ Pattern pattern = PATTERN;
+ if (sentence.startsWith("*GS02")) {
+ pattern = PATTERN_OLD;
+ }
Parser parser = new Parser(pattern, (String) msg);
if (!parser.matches()) {