diff options
Diffstat (limited to 'src/org/traccar/protocol/VisiontekProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/VisiontekProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/VisiontekProtocolDecoder.java b/src/org/traccar/protocol/VisiontekProtocolDecoder.java index a1a5cf6c9..f974d08be 100644 --- a/src/org/traccar/protocol/VisiontekProtocolDecoder.java +++ b/src/org/traccar/protocol/VisiontekProtocolDecoder.java @@ -32,7 +32,7 @@ public class VisiontekProtocolDecoder extends BaseProtocolDecoder { super(protocol); } - private static final Pattern pattern = Pattern.compile( + private static final Pattern PATTERN = Pattern.compile( "\\$1," + "([^,]+)," + // Identifier "(?:(\\d+),)?" + // IMEI @@ -63,7 +63,7 @@ public class VisiontekProtocolDecoder extends BaseProtocolDecoder { String sentence = (String) msg; // Parse message - Matcher parser = pattern.matcher(sentence); + Matcher parser = PATTERN.matcher(sentence); if (!parser.matches()) { return null; } |