diff options
Diffstat (limited to 'src/org/traccar/HemisphereHandler.java')
-rw-r--r-- | src/org/traccar/HemisphereHandler.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/org/traccar/HemisphereHandler.java b/src/org/traccar/HemisphereHandler.java index b1e7d3fb2..669ffd36e 100644 --- a/src/org/traccar/HemisphereHandler.java +++ b/src/org/traccar/HemisphereHandler.java @@ -15,11 +15,13 @@ */ package org.traccar; -import org.jboss.netty.channel.Channel; +import io.netty.channel.Channel; +import io.netty.channel.ChannelHandler; import org.traccar.model.Position; import java.net.SocketAddress; +@ChannelHandler.Sharable public class HemisphereHandler extends ExtendedObjectDecoder { private int latitudeFactor; @@ -45,8 +47,7 @@ public class HemisphereHandler extends ExtendedObjectDecoder { } @Override - protected Object decode( - Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { + protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { if (msg instanceof Position) { Position position = (Position) msg; |