From f7d2f360323074081a560b168e6ddf0a875d2f38 Mon Sep 17 00:00:00 2001 From: Damien alias Dough Date: Sun, 4 Sep 2016 09:59:05 +0200 Subject: Using array instead of List to split location --- src/org/traccar/protocol/OsmAndProtocolDecoder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/org/traccar/protocol') diff --git a/src/org/traccar/protocol/OsmAndProtocolDecoder.java b/src/org/traccar/protocol/OsmAndProtocolDecoder.java index 1d4dc898a..b9a519b21 100644 --- a/src/org/traccar/protocol/OsmAndProtocolDecoder.java +++ b/src/org/traccar/protocol/OsmAndProtocolDecoder.java @@ -106,9 +106,9 @@ public class OsmAndProtocolDecoder extends BaseProtocolDecoder { position.setLongitude(Double.parseDouble(value)); break; case "location": - List location = Arrays.asList(value.split(",")); - position.setLatitude(Double.parseDouble(location.get(0))); - position.setLongitude(Double.parseDouble(location.get(1))); + String[] location = value.split(","); + position.setLatitude(Double.parseDouble(location[0])); + position.setLongitude(Double.parseDouble(location[1])); break; case "speed": position.setSpeed(Double.parseDouble(value)); -- cgit v1.2.3