aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-04-26 13:29:22 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-04-26 13:29:22 +1200
commitd72ae54820d8e42571fa7eadd1477a2502df580b (patch)
tree3a33313af53477c61b038acb3ac2b16f291c1168
parent53845211c51155b09808ce374b7052e9d3dd5c2e (diff)
downloadtrackermap-server-d72ae54820d8e42571fa7eadd1477a2502df580b.tar.gz
trackermap-server-d72ae54820d8e42571fa7eadd1477a2502df580b.tar.bz2
trackermap-server-d72ae54820d8e42571fa7eadd1477a2502df580b.zip
Minor changes to Aplicom decoder
-rw-r--r--src/org/traccar/protocol/AplicomProtocolDecoder.java8
-rw-r--r--test/org/traccar/protocol/AplicomProtocolDecoderTest.java1
2 files changed, 3 insertions, 6 deletions
diff --git a/src/org/traccar/protocol/AplicomProtocolDecoder.java b/src/org/traccar/protocol/AplicomProtocolDecoder.java
index aee1517e4..0d90ec771 100644
--- a/src/org/traccar/protocol/AplicomProtocolDecoder.java
+++ b/src/org/traccar/protocol/AplicomProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 Anton Tananaev (anton.tananaev@gmail.com)
+ * Copyright 2013 - 2015 Anton Tananaev (anton.tananaev@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,16 +16,12 @@
package org.traccar.protocol;
import java.util.Date;
-import java.util.Properties;
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelHandlerContext;
import org.traccar.BaseProtocolDecoder;
-import org.traccar.Context;
-import org.traccar.database.DataManager;
-import org.traccar.helper.Log;
import org.traccar.model.ExtendedInfoFormatter;
import org.traccar.model.Position;
@@ -102,6 +98,8 @@ public class AplicomProtocolDecoder extends BaseProtocolDecoder {
}
private static final int DEFAULT_SELECTOR = 0x0002FC;
+
+ private static final int EVENT_DATA = 119;
@Override
protected Object decode(
diff --git a/test/org/traccar/protocol/AplicomProtocolDecoderTest.java b/test/org/traccar/protocol/AplicomProtocolDecoderTest.java
index 9a8af0123..6d4bc65bd 100644
--- a/test/org/traccar/protocol/AplicomProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/AplicomProtocolDecoderTest.java
@@ -1,6 +1,5 @@
package org.traccar.protocol;
-import org.traccar.helper.TestDataManager;
import org.jboss.netty.buffer.ChannelBuffers;
import static org.traccar.helper.DecoderVerifier.verify;
import org.junit.Test;