aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Jt600ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-04-27 12:18:31 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-04-27 12:18:31 +1200
commit27055e0bf5f544552c227da10badff34a71cfb70 (patch)
treefa49594c393e42a1221009c1e6d309b06452e794 /src/org/traccar/protocol/Jt600ProtocolDecoder.java
parent42406b4d6a32db0d438447a5fce114669810d746 (diff)
downloadtrackermap-server-27055e0bf5f544552c227da10badff34a71cfb70.tar.gz
trackermap-server-27055e0bf5f544552c227da10badff34a71cfb70.tar.bz2
trackermap-server-27055e0bf5f544552c227da10badff34a71cfb70.zip
Remove unnecessary type casts
Diffstat (limited to 'src/org/traccar/protocol/Jt600ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Jt600ProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Jt600ProtocolDecoder.java b/src/org/traccar/protocol/Jt600ProtocolDecoder.java
index a1eb67993..e840db8b8 100644
--- a/src/org/traccar/protocol/Jt600ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Jt600ProtocolDecoder.java
@@ -89,7 +89,7 @@ public class Jt600ProtocolDecoder extends BaseProtocolDecoder {
position.setLongitude(longitude);
// Speed
- position.setSpeed((double) ChannelBufferTools.readHexInteger(buf, 2));
+ position.setSpeed(ChannelBufferTools.readHexInteger(buf, 2));
// Course
position.setCourse(buf.readUnsignedByte() * 2.0);
@@ -104,7 +104,7 @@ public class Jt600ProtocolDecoder extends BaseProtocolDecoder {
buf.readByte(); // other flags and sensors
// Altitude
- position.setAltitude((double) buf.readUnsignedShort());
+ position.setAltitude(buf.readUnsignedShort());
extendedInfo.set("cell", buf.readUnsignedShort());
extendedInfo.set("lac", buf.readUnsignedShort());