diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-03-01 13:48:16 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-03-01 13:48:16 +1300 |
commit | 8e0740ac9465b431ccc298b665b0750ed06a6b72 (patch) | |
tree | df521d84ed38c1a0dc35a23fba57ee575b5ae70c /src/org/traccar/helper | |
parent | a8192b921e0f0b89654440075e4045d9002f1b73 (diff) | |
download | trackermap-server-8e0740ac9465b431ccc298b665b0750ed06a6b72.tar.gz trackermap-server-8e0740ac9465b431ccc298b665b0750ed06a6b72.tar.bz2 trackermap-server-8e0740ac9465b431ccc298b665b0750ed06a6b72.zip |
Remove unused Java class imports
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r-- | src/org/traccar/helper/ObdDecoder.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/org/traccar/helper/ObdDecoder.java b/src/org/traccar/helper/ObdDecoder.java index d847fb7c4..c2d9b1841 100644 --- a/src/org/traccar/helper/ObdDecoder.java +++ b/src/org/traccar/helper/ObdDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 Anton Tananaev (anton.tananaev@gmail.com) + * Copyright 2015 - 2016 Anton Tananaev (anton.tananaev@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,8 +18,6 @@ package org.traccar.helper; import org.traccar.model.Event; import java.util.AbstractMap; -import java.util.LinkedList; -import java.util.List; import java.util.Map; public final class ObdDecoder { @@ -62,9 +60,6 @@ public final class ObdDecoder { int numValue = Integer.parseInt(value.substring(i * 4, (i + 1) * 4), 16); codes.append(','); switch (numValue >> 14) { - case 0: - codes.append('P'); - break; case 1: codes.append('C'); break; @@ -74,6 +69,9 @@ public final class ObdDecoder { case 3: codes.append('U'); break; + default: + codes.append('P'); + break; } codes.append(String.format("%04X", numValue & 0x3FFF)); } |