aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/WondexProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-07 14:30:28 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-07 14:30:28 +1300
commit4a5961a98b0b6576e4c6553435a70a7bca3f9b44 (patch)
treefa7d6f8f790c7a439b12c552c148b675950f1c80 /src/org/traccar/protocol/WondexProtocolDecoder.java
parente7bc5f93cd05f27f41bfb25836a04feb511adc17 (diff)
downloadtrackermap-server-4a5961a98b0b6576e4c6553435a70a7bca3f9b44.tar.gz
trackermap-server-4a5961a98b0b6576e4c6553435a70a7bca3f9b44.tar.bz2
trackermap-server-4a5961a98b0b6576e4c6553435a70a7bca3f9b44.zip
Replace Double.valueOf with parseDouble
Diffstat (limited to 'src/org/traccar/protocol/WondexProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/WondexProtocolDecoder.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/traccar/protocol/WondexProtocolDecoder.java b/src/org/traccar/protocol/WondexProtocolDecoder.java
index cd95e8463..dbd15c3d0 100644
--- a/src/org/traccar/protocol/WondexProtocolDecoder.java
+++ b/src/org/traccar/protocol/WondexProtocolDecoder.java
@@ -87,11 +87,11 @@ public class WondexProtocolDecoder extends BaseProtocolDecoder {
position.setTime(time.getTime());
// Position data
- position.setLongitude(Double.valueOf(parser.group(index++)));
- position.setLatitude(Double.valueOf(parser.group(index++)));
- position.setSpeed(UnitsConverter.knotsFromKph(Double.valueOf(parser.group(index++))));
- position.setCourse(Double.valueOf(parser.group(index++)));
- position.setAltitude(Double.valueOf(parser.group(index++)));
+ position.setLongitude(Double.parseDouble(parser.group(index++)));
+ position.setLatitude(Double.parseDouble(parser.group(index++)));
+ position.setSpeed(UnitsConverter.knotsFromKph(Double.parseDouble(parser.group(index++))));
+ position.setCourse(Double.parseDouble(parser.group(index++)));
+ position.setAltitude(Double.parseDouble(parser.group(index++)));
// Satellites
int satellites = Integer.parseInt(parser.group(index++));