From 6a3d70c2e591edbb34af15dcaa45a9a7114c1dd3 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 5 Jun 2018 20:38:22 +1200 Subject: Remove extra wrappers --- src/org/traccar/protocol/Gps103Protocol.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/protocol/Gps103Protocol.java b/src/org/traccar/protocol/Gps103Protocol.java index b49415ddf..068f362c9 100644 --- a/src/org/traccar/protocol/Gps103Protocol.java +++ b/src/org/traccar/protocol/Gps103Protocol.java @@ -21,8 +21,6 @@ import org.traccar.BaseProtocol; import org.traccar.CharacterDelimiterFrameDecoder; import org.traccar.PipelineBuilder; import org.traccar.TrackerServer; -import org.traccar.WrapperInboundHandler; -import org.traccar.WrapperOutboundHandler; import org.traccar.model.Command; import java.util.List; @@ -49,8 +47,8 @@ public class Gps103Protocol extends BaseProtocol { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { pipeline.addLast("frameDecoder", new CharacterDelimiterFrameDecoder(2048, "\r\n", "\n", ";")); - pipeline.addLast("stringEncoder", new WrapperOutboundHandler(new StringEncoder())); - pipeline.addLast("stringDecoder", new WrapperInboundHandler(new StringDecoder())); + pipeline.addLast("stringEncoder", new StringEncoder()); + pipeline.addLast("stringDecoder", new StringDecoder()); pipeline.addLast("objectEncoder", new Gps103ProtocolEncoder()); pipeline.addLast("objectDecoder", new Gps103ProtocolDecoder(Gps103Protocol.this)); } -- cgit v1.2.3