diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-13 11:40:11 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-13 11:40:11 +1300 |
commit | a66a9ceda2b87b054136d073a9db440c29810520 (patch) | |
tree | e50b2df35af2e4bb20a6d7c1bfca6b40fb350494 /src/org/traccar/protocol/CellocatorFrameDecoder.java | |
parent | 8d1e3f1f7e35e5bc0c2898ca9c9d840ef9676cd8 (diff) | |
download | trackermap-server-a66a9ceda2b87b054136d073a9db440c29810520.tar.gz trackermap-server-a66a9ceda2b87b054136d073a9db440c29810520.tar.bz2 trackermap-server-a66a9ceda2b87b054136d073a9db440c29810520.zip |
Fix some minor check style issues
Diffstat (limited to 'src/org/traccar/protocol/CellocatorFrameDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/CellocatorFrameDecoder.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/CellocatorFrameDecoder.java b/src/org/traccar/protocol/CellocatorFrameDecoder.java index d4650d966..c9cfab99e 100644 --- a/src/org/traccar/protocol/CellocatorFrameDecoder.java +++ b/src/org/traccar/protocol/CellocatorFrameDecoder.java @@ -39,7 +39,8 @@ public class CellocatorFrameDecoder extends FrameDecoder { // Size depending on message type int length = 0; - switch (buf.getUnsignedByte(4)) { + int type = buf.getUnsignedByte(4); + switch (type) { case CellocatorProtocolDecoder.MSG_CLIENT_STATUS: length = 70; break; @@ -58,7 +59,7 @@ public class CellocatorFrameDecoder extends FrameDecoder { length = 15 + buf.getUnsignedByte(13); break; default: - Log.warning(new UnsupportedOperationException()); + Log.warning(new UnsupportedOperationException(String.valueOf(type))); break; } |