aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MaxonProtocolDecoder.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/MaxonProtocolDecoder.java
parente7bc5f93cd05f27f41bfb25836a04feb511adc17 (diff)
downloadtraccar-server-4a5961a98b0b6576e4c6553435a70a7bca3f9b44.tar.gz
traccar-server-4a5961a98b0b6576e4c6553435a70a7bca3f9b44.tar.bz2
traccar-server-4a5961a98b0b6576e4c6553435a70a7bca3f9b44.zip
Replace Double.valueOf with parseDouble
Diffstat (limited to 'src/org/traccar/protocol/MaxonProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/MaxonProtocolDecoder.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/org/traccar/protocol/MaxonProtocolDecoder.java b/src/org/traccar/protocol/MaxonProtocolDecoder.java
index 9e4381ee4..54177af68 100644
--- a/src/org/traccar/protocol/MaxonProtocolDecoder.java
+++ b/src/org/traccar/protocol/MaxonProtocolDecoder.java
@@ -89,27 +89,27 @@ public class MaxonProtocolDecoder extends BaseProtocolDecoder {
position.setValid(parser.group(index++).compareTo("A") == 0);
// Latitude
- Double latitude = Double.valueOf(parser.group(index++));
- latitude += Double.valueOf(parser.group(index++)) / 60;
+ Double latitude = Double.parseDouble(parser.group(index++));
+ latitude += Double.parseDouble(parser.group(index++)) / 60;
if (parser.group(index++).compareTo("S") == 0) latitude = -latitude;
position.setLatitude(latitude);
// Longitude
- Double longitude = Double.valueOf(parser.group(index++));
- longitude += Double.valueOf(parser.group(index++)) / 60;
+ Double longitude = Double.parseDouble(parser.group(index++));
+ longitude += Double.parseDouble(parser.group(index++)) / 60;
if (parser.group(index++).compareTo("W") == 0) longitude = -longitude;
position.setLongitude(longitude);
// Speed
String speed = parser.group(index++);
if (speed != null) {
- position.setSpeed(Double.valueOf(speed));
+ position.setSpeed(Double.parseDouble(speed));
}
// Course
String course = parser.group(index++);
if (course != null) {
- position.setCourse(Double.valueOf(course));
+ position.setCourse(Double.parseDouble(course));
}
// Date