aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-01-09 17:26:38 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-01-09 17:26:38 +1300
commit232de5f0daef98f31b28d177d991fdbfa191f195 (patch)
treeac47d3e7503527708b06c31833ad869180f96635 /src/org/traccar
parentebb5e7eeee6a0210dd2280ec1aabb232b958022f (diff)
downloadtraccar-server-232de5f0daef98f31b28d177d991fdbfa191f195.tar.gz
traccar-server-232de5f0daef98f31b28d177d991fdbfa191f195.tar.bz2
traccar-server-232de5f0daef98f31b28d177d991fdbfa191f195.zip
Fix and disable warnings
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/MeitrackProtocolDecoder.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/org/traccar/protocol/MeitrackProtocolDecoder.java
index 3de71fa14..b0195d09f 100644
--- a/src/org/traccar/protocol/MeitrackProtocolDecoder.java
+++ b/src/org/traccar/protocol/MeitrackProtocolDecoder.java
@@ -242,13 +242,14 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
}
if (parser.hasNext(2)) {
- decodeDataFields(position, parser.nextInt(), parser.next().split(","));
+ parser.nextInt(); // count
+ decodeDataFields(position, parser.next().split(","));
}
return position;
}
- private void decodeDataFields(Position position, int count, String[] values) {
+ private void decodeDataFields(Position position, String[] values) {
if (values.length > 1 && !values[1].isEmpty()) {
position.set("tempData", values[1]);