diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-23 16:57:02 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-23 16:57:02 +1200 |
commit | d997825008a0a1b0a6c29cc45e381cd239aa3572 (patch) | |
tree | f21c058b1cedb5ffe041f2ee199b4bd0e6329b93 /src/org/traccar/protocol/Ev603ProtocolDecoder.java | |
parent | 23b09f83989a4b012bc2387fb6e180baccf9a60c (diff) | |
download | trackermap-server-d997825008a0a1b0a6c29cc45e381cd239aa3572.tar.gz trackermap-server-d997825008a0a1b0a6c29cc45e381cd239aa3572.tar.bz2 trackermap-server-d997825008a0a1b0a6c29cc45e381cd239aa3572.zip |
Clean up code inspection issues
Diffstat (limited to 'src/org/traccar/protocol/Ev603ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/Ev603ProtocolDecoder.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/org/traccar/protocol/Ev603ProtocolDecoder.java b/src/org/traccar/protocol/Ev603ProtocolDecoder.java index 898e5802d..a15e68f86 100644 --- a/src/org/traccar/protocol/Ev603ProtocolDecoder.java +++ b/src/org/traccar/protocol/Ev603ProtocolDecoder.java @@ -16,19 +16,17 @@ */
package org.traccar.protocol;
-import java.net.SocketAddress; +import java.net.SocketAddress;
import java.util.Calendar;
import java.util.TimeZone;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.jboss.netty.channel.Channel;
-import org.jboss.netty.channel.ChannelHandlerContext;
-
import org.traccar.BaseProtocolDecoder;
import org.traccar.model.Position;
-public class Ev603ProtocolDecoder extends BaseProtocolDecoder{
+public class Ev603ProtocolDecoder extends BaseProtocolDecoder {
public Ev603ProtocolDecoder(Ev603Protocol protocol) {
super(protocol);
@@ -36,7 +34,7 @@ public class Ev603ProtocolDecoder extends BaseProtocolDecoder{ private static final Pattern pattern = Pattern.compile(
"!.," + // Type
- "(\\d{2})\\/(\\d{2})\\/(\\d{2})," + // Date dd/mm/YY
+ "(\\d{2})/(\\d{2})/(\\d{2})," + // Date dd/mm/YY
"(\\d{2}):(\\d{2}):(\\d{2})," + // Time hh:mm:ss
"(-?\\d+\\.\\d+)," + // Latitude
"(-?\\d+\\.\\d+)," + // Longitude
|