aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2022-01-21 19:01:42 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2022-01-21 19:01:42 -0800
commit96c3589154583f57e5aa39663679fc5df103f394 (patch)
treed6b9f754cf61e2b2fa9ffa41b7c99fc6e50f2cd8 /src/main
parentcb07c34f3b79d82d85ab6c0df8f64c3c3facc3a0 (diff)
downloadtrackermap-server-96c3589154583f57e5aa39663679fc5df103f394.tar.gz
trackermap-server-96c3589154583f57e5aa39663679fc5df103f394.tar.bz2
trackermap-server-96c3589154583f57e5aa39663679fc5df103f394.zip
Fix style issues
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/BaseProtocolPoller.java3
-rw-r--r--src/main/java/org/traccar/protocol/ArmoliProtocolPoller.java2
-rw-r--r--src/main/java/org/traccar/protocol/OrbcommProtocolPoller.java2
3 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/BaseProtocolPoller.java b/src/main/java/org/traccar/BaseProtocolPoller.java
index 5f4121fc1..be6556374 100644
--- a/src/main/java/org/traccar/BaseProtocolPoller.java
+++ b/src/main/java/org/traccar/BaseProtocolPoller.java
@@ -19,7 +19,6 @@ import io.netty.channel.Channel;
import io.netty.channel.ChannelDuplexHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.util.concurrent.Future;
-import org.traccar.config.Keys;
import java.net.SocketAddress;
import java.util.concurrent.TimeUnit;
@@ -29,7 +28,7 @@ public abstract class BaseProtocolPoller extends ChannelDuplexHandler {
private final long interval;
private Future<?> timeout;
- public BaseProtocolPoller(Protocol protocol, long interval) {
+ public BaseProtocolPoller(long interval) {
this.interval = interval;
}
diff --git a/src/main/java/org/traccar/protocol/ArmoliProtocolPoller.java b/src/main/java/org/traccar/protocol/ArmoliProtocolPoller.java
index 446ce8c39..f7bb9f593 100644
--- a/src/main/java/org/traccar/protocol/ArmoliProtocolPoller.java
+++ b/src/main/java/org/traccar/protocol/ArmoliProtocolPoller.java
@@ -24,7 +24,7 @@ import java.net.SocketAddress;
public class ArmoliProtocolPoller extends BaseProtocolPoller {
public ArmoliProtocolPoller(Protocol protocol) {
- super(protocol, 180000);
+ super(180000);
}
@Override
diff --git a/src/main/java/org/traccar/protocol/OrbcommProtocolPoller.java b/src/main/java/org/traccar/protocol/OrbcommProtocolPoller.java
index 65e98474b..6a2d7a92d 100644
--- a/src/main/java/org/traccar/protocol/OrbcommProtocolPoller.java
+++ b/src/main/java/org/traccar/protocol/OrbcommProtocolPoller.java
@@ -47,7 +47,7 @@ public class OrbcommProtocolPoller extends BaseProtocolPoller {
}
public OrbcommProtocolPoller(Protocol protocol) {
- super(protocol, Context.getConfig().getLong(Keys.PROTOCOL_INTERVAL.withPrefix(protocol.getName())));
+ super(Context.getConfig().getLong(Keys.PROTOCOL_INTERVAL.withPrefix(protocol.getName())));
accessId = Context.getConfig().getString(Keys.ORBCOMM_ACCESS_ID);
password = Context.getConfig().getString(Keys.ORBCOMM_PASSWORD);
host = Context.getConfig().getString(Keys.PROTOCOL_ADDRESS.withPrefix(protocol.getName()));