diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-30 14:04:24 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-30 14:04:24 -0700 |
commit | 014cf82a9e63a36e944e293932f9edf27e452919 (patch) | |
tree | 7ac5899f535fbf47e66dc1321738c951473a009b /src/main/java/org/traccar/protocol/GenxProtocolDecoder.java | |
parent | ce661ec77a957b70c15509c6801e6f34b32ad11d (diff) | |
download | trackermap-server-014cf82a9e63a36e944e293932f9edf27e452919.tar.gz trackermap-server-014cf82a9e63a36e944e293932f9edf27e452919.tar.bz2 trackermap-server-014cf82a9e63a36e944e293932f9edf27e452919.zip |
No context dependency for decoder
Diffstat (limited to 'src/main/java/org/traccar/protocol/GenxProtocolDecoder.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/GenxProtocolDecoder.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/GenxProtocolDecoder.java b/src/main/java/org/traccar/protocol/GenxProtocolDecoder.java index 2ae9de7a0..b787b7467 100644 --- a/src/main/java/org/traccar/protocol/GenxProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/GenxProtocolDecoder.java @@ -17,7 +17,6 @@ package org.traccar.protocol; import io.netty.channel.Channel; import org.traccar.BaseProtocolDecoder; -import org.traccar.Context; import org.traccar.DeviceSession; import org.traccar.Protocol; import org.traccar.helper.UnitsConverter; @@ -32,7 +31,11 @@ public class GenxProtocolDecoder extends BaseProtocolDecoder { public GenxProtocolDecoder(Protocol protocol) { super(protocol); - setReportColumns(Context.getConfig().getString(getProtocolName() + ".reportColumns", "1,2,3,4")); + } + + @Override + protected void init() { + setReportColumns(getConfig().getString(getProtocolName() + ".reportColumns", "1,2,3,4")); } public void setReportColumns(String format) { |