diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-07 14:30:28 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-07 14:30:28 +1300 |
commit | 4a5961a98b0b6576e4c6553435a70a7bca3f9b44 (patch) | |
tree | fa7d6f8f790c7a439b12c552c148b675950f1c80 /src/org/traccar/protocol/Ev603ProtocolDecoder.java | |
parent | e7bc5f93cd05f27f41bfb25836a04feb511adc17 (diff) | |
download | traccar-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/Ev603ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/Ev603ProtocolDecoder.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/Ev603ProtocolDecoder.java b/src/org/traccar/protocol/Ev603ProtocolDecoder.java index 31c0a8208..34e961084 100644 --- a/src/org/traccar/protocol/Ev603ProtocolDecoder.java +++ b/src/org/traccar/protocol/Ev603ProtocolDecoder.java @@ -85,14 +85,14 @@ public class Ev603ProtocolDecoder extends BaseProtocolDecoder { position.setValid(true);
// Coordinates
- position.setLatitude(Double.valueOf(parser.group(index++)));
- position.setLongitude(Double.valueOf(parser.group(index++)));
+ position.setLatitude(Double.parseDouble(parser.group(index++)));
+ position.setLongitude(Double.parseDouble(parser.group(index++)));
// Speed
- position.setSpeed(Double.valueOf(parser.group(index++)));
+ position.setSpeed(Double.parseDouble(parser.group(index++)));
// Course
- position.setCourse(Double.valueOf(parser.group(index++)));
+ position.setCourse(Double.parseDouble(parser.group(index++)));
if (position.getCourse() > 360) {
position.setCourse(0);
}
|