From 61d4c1f15b645aa06c84905933108437e1ade92a Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 17 Oct 2018 17:08:59 +1300 Subject: Move server init into constructor --- src/org/traccar/protocol/GenxProtocol.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/org/traccar/protocol/GenxProtocol.java') diff --git a/src/org/traccar/protocol/GenxProtocol.java b/src/org/traccar/protocol/GenxProtocol.java index f3d388266..c87ba946a 100644 --- a/src/org/traccar/protocol/GenxProtocol.java +++ b/src/org/traccar/protocol/GenxProtocol.java @@ -21,16 +21,10 @@ import org.traccar.BaseProtocol; import org.traccar.PipelineBuilder; import org.traccar.TrackerServer; -import java.util.List; - public class GenxProtocol extends BaseProtocol { public GenxProtocol() { - } - - @Override - public void initTrackerServers(List serverList) { - serverList.add(new TrackerServer(false, getName()) { + addServer(new TrackerServer(false, getName()) { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { pipeline.addLast(new LineBasedFrameDecoder(1024)); -- cgit v1.2.3