aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/T55ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-07 18:50:10 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-07 18:50:10 +1300
commitc344d4086bb2179d485c9b25af4d737e26f23221 (patch)
treef937934f07951e0ec8f8281528bd1ba9664c2d3f /src/org/traccar/protocol/T55ProtocolDecoder.java
parent4a5961a98b0b6576e4c6553435a70a7bca3f9b44 (diff)
downloadtrackermap-server-c344d4086bb2179d485c9b25af4d737e26f23221.tar.gz
trackermap-server-c344d4086bb2179d485c9b25af4d737e26f23221.tar.bz2
trackermap-server-c344d4086bb2179d485c9b25af4d737e26f23221.zip
Rename pattern to upper case style
Diffstat (limited to 'src/org/traccar/protocol/T55ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/T55ProtocolDecoder.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/org/traccar/protocol/T55ProtocolDecoder.java b/src/org/traccar/protocol/T55ProtocolDecoder.java
index 989d24820..ec3919ebe 100644
--- a/src/org/traccar/protocol/T55ProtocolDecoder.java
+++ b/src/org/traccar/protocol/T55ProtocolDecoder.java
@@ -31,7 +31,7 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder {
super(protocol);
}
- private static final Pattern patternGPRMC = Pattern.compile(
+ private static final Pattern PATTERN_GPRMC = Pattern.compile(
"\\$GPRMC," +
"(\\d{2})(\\d{2})(\\d{2})\\.?\\d*," + // Time (HHMMSS.SSS)
"([AV])," + // Validity
@@ -44,7 +44,7 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder {
"(\\d{2})(\\d{2})(\\d{2})" + // Date (DDMMYY)
".+");
- private static final Pattern patternGPGGA = Pattern.compile(
+ private static final Pattern PATTERN_GPGGA = Pattern.compile(
"\\$GPGGA," +
"(\\d{2})(\\d{2})(\\d{2})\\.?\\d*," + // Time
"(\\d+)(\\d{2}\\.\\d+)," + // Latitude
@@ -53,7 +53,7 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder {
"([EW])," +
".+");
- private static final Pattern patternGPRMA = Pattern.compile(
+ private static final Pattern PATTERN_GPRMA = Pattern.compile(
"\\$GPRMA," +
"([AV])," + // Validity
"(\\d{2})(\\d{2}\\.\\d+)," + // Latitude
@@ -64,7 +64,7 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder {
"(\\d+\\.?\\d*)?," + // Course
".+");
- private static final Pattern patternTRCCR = Pattern.compile(
+ private static final Pattern PATTERN_TRCCR = Pattern.compile(
"\\$TRCCR," +
"(\\d{4})(\\d{2})(\\d{2})" + // Date (YYYYMMDD)
"(\\d{2})(\\d{2})(\\d{2})\\.?\\d*," + // Time (HHMMSS.SSS)
@@ -128,7 +128,7 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder {
}
// Parse message
- Matcher parser = patternGPRMC.matcher(sentence);
+ Matcher parser = PATTERN_GPRMC.matcher(sentence);
if (!parser.matches()) {
return null;
}
@@ -186,7 +186,7 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder {
else if (sentence.startsWith("$GPGGA") && hasDeviceId()) {
// Parse message
- Matcher parser = patternGPGGA.matcher(sentence);
+ Matcher parser = PATTERN_GPGGA.matcher(sentence);
if (!parser.matches()) {
return null;
}
@@ -227,7 +227,7 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder {
else if (sentence.startsWith("$GPRMA") && hasDeviceId()) {
// Parse message
- Matcher parser = patternGPRMA.matcher(sentence);
+ Matcher parser = PATTERN_GPRMA.matcher(sentence);
if (!parser.matches()) {
return null;
}
@@ -275,7 +275,7 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder {
else if (sentence.startsWith("$TRCCR") && hasDeviceId()) {
// Parse message
- Matcher parser = patternTRCCR.matcher(sentence);
+ Matcher parser = PATTERN_TRCCR.matcher(sentence);
if (!parser.matches()) {
return null;
}