aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/XexunProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/XexunProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/XexunProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/XexunProtocolDecoder.java b/src/org/traccar/protocol/XexunProtocolDecoder.java
index 348c30bde..95676d2e2 100644
--- a/src/org/traccar/protocol/XexunProtocolDecoder.java
+++ b/src/org/traccar/protocol/XexunProtocolDecoder.java
@@ -29,14 +29,14 @@ import org.traccar.model.Position;
public class XexunProtocolDecoder extends BaseProtocolDecoder {
- private boolean full;
+ private final boolean full;
public XexunProtocolDecoder(XexunProtocol protocol, boolean full) {
super(protocol);
this.full = full;
}
- static private Pattern patternBasic = Pattern.compile(
+ private static final Pattern patternBasic = Pattern.compile(
"G[PN]RMC," +
"(\\d{2})(\\d{2})(\\d{2})\\.(\\d+)," + // Time (HHMMSS.SSS)
"([AV])," + // Validity
@@ -53,7 +53,7 @@ public class XexunProtocolDecoder extends BaseProtocolDecoder {
".*imei:" +
"(\\d+),"); // IMEI
- static private Pattern patternFull = Pattern.compile(
+ private static final Pattern patternFull = Pattern.compile(
"[\r\n]*" +
"(\\d+)," + // Serial
"([^,]+)?," + // Number