diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-01-23 10:46:10 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-01-23 10:46:10 +1300 |
commit | ad7bdd5a5fe04841c941860a98501eef2a00207b (patch) | |
tree | f5b36da2a7d40acb5ca4ed25e27675de39f5fc26 /src/org/traccar/protocol/GoSafeProtocolDecoder.java | |
parent | 2e24e0e311606d7b12b9e36f113dd218e54d67bb (diff) | |
download | trackermap-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.java | 5 |
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()) { |