From 8d1e3f1f7e35e5bc0c2898ca9c9d840ef9676cd8 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 13 Oct 2015 11:24:32 +1300 Subject: Fix last reported FindBugs issues --- src/org/traccar/protocol/CellocatorFrameDecoder.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/org/traccar/protocol/CellocatorFrameDecoder.java') diff --git a/src/org/traccar/protocol/CellocatorFrameDecoder.java b/src/org/traccar/protocol/CellocatorFrameDecoder.java index 3be0f5dfe..d4650d966 100644 --- a/src/org/traccar/protocol/CellocatorFrameDecoder.java +++ b/src/org/traccar/protocol/CellocatorFrameDecoder.java @@ -19,6 +19,7 @@ import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.channel.Channel; import org.jboss.netty.channel.ChannelHandlerContext; import org.jboss.netty.handler.codec.frame.FrameDecoder; +import org.traccar.helper.Log; public class CellocatorFrameDecoder extends FrameDecoder { @@ -56,6 +57,9 @@ public class CellocatorFrameDecoder extends FrameDecoder { case CellocatorProtocolDecoder.MSG_CLIENT_MODULAR: length = 15 + buf.getUnsignedByte(13); break; + default: + Log.warning(new UnsupportedOperationException()); + break; } // Read packet -- cgit v1.2.3