From 232de5f0daef98f31b28d177d991fdbfa191f195 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 9 Jan 2018 17:26:38 +1300 Subject: Fix and disable warnings --- src/org/traccar/protocol/MeitrackProtocolDecoder.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/org') 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]); -- cgit v1.2.3