diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-11-09 19:01:19 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-11-09 19:01:19 +1300 |
commit | cf0565caceee6856328e481dd23600ed2590c88a (patch) | |
tree | 9d2cc8cf8d3eb27b36412eb492ad702581891f1c /src/org/traccar/protocol/MeitrackProtocolDecoder.java | |
parent | f9ecee5b732b0c82c8a95bebdb5e275ea479cccc (diff) | |
download | trackermap-server-cf0565caceee6856328e481dd23600ed2590c88a.tar.gz trackermap-server-cf0565caceee6856328e481dd23600ed2590c88a.tar.bz2 trackermap-server-cf0565caceee6856328e481dd23600ed2590c88a.zip |
Improve unit test verification
Diffstat (limited to 'src/org/traccar/protocol/MeitrackProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/MeitrackProtocolDecoder.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/org/traccar/protocol/MeitrackProtocolDecoder.java index af269f58b..3cf822000 100644 --- a/src/org/traccar/protocol/MeitrackProtocolDecoder.java +++ b/src/org/traccar/protocol/MeitrackProtocolDecoder.java @@ -33,7 +33,7 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder { super(serverManager); } - static private Pattern pattern = Pattern.compile( + private static final Pattern pattern = Pattern.compile( "\\$\\$." + // Flag "\\d+," + // Length "(\\d+)," + // IMEI @@ -48,7 +48,7 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder { "(\\d+)," + // GSM Signal "(\\d+)," + // Speed "(\\d+)," + // Course - "(\\d+.?\\d*)," + // HDOP + "(\\d+\\.?\\d*)," + // HDOP "(\\d+)," + // Altitude "(\\d+)," + // Milage ".*"); // TODO: parse other stuff @@ -99,7 +99,7 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder { position.setTime(time.getTime()); // Validity - position.setValid(parser.group(index++).compareTo("A") == 0 ? true : false); + position.setValid(parser.group(index++).compareTo("A") == 0); // Satellites extendedInfo.set("satellites", parser.group(index++)); |