aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/CellocatorFrameDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-13 11:40:11 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-13 11:40:11 +1300
commita66a9ceda2b87b054136d073a9db440c29810520 (patch)
treee50b2df35af2e4bb20a6d7c1bfca6b40fb350494 /src/org/traccar/protocol/CellocatorFrameDecoder.java
parent8d1e3f1f7e35e5bc0c2898ca9c9d840ef9676cd8 (diff)
downloadtrackermap-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.java5
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;
}