aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/CityeasyProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-04 16:53:14 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-04 16:53:14 +1300
commitc64a77edfdcd6ed4e7cb61bef5e3f2762a607da7 (patch)
tree470f3e9d8ceae5f8fe7eadc69bf82f9ef8368c6e /src/org/traccar/protocol/CityeasyProtocolDecoder.java
parent65d2e3b04e3d32245456e7520796cdf7e9def692 (diff)
downloadtrackermap-server-c64a77edfdcd6ed4e7cb61bef5e3f2762a607da7.tar.gz
trackermap-server-c64a77edfdcd6ed4e7cb61bef5e3f2762a607da7.tar.bz2
trackermap-server-c64a77edfdcd6ed4e7cb61bef5e3f2762a607da7.zip
Replace valueOf with parseXxx
Diffstat (limited to 'src/org/traccar/protocol/CityeasyProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/CityeasyProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/CityeasyProtocolDecoder.java b/src/org/traccar/protocol/CityeasyProtocolDecoder.java
index c0288a8d5..4cb0562a6 100644
--- a/src/org/traccar/protocol/CityeasyProtocolDecoder.java
+++ b/src/org/traccar/protocol/CityeasyProtocolDecoder.java
@@ -66,7 +66,7 @@ public class CityeasyProtocolDecoder extends BaseProtocolDecoder {
String imei = ChannelBufferTools.readHexString(buf, 14);
if (!identify(imei, channel, null, false)) {
- if (!identify(imei + Crc.luhnChecksum(Long.valueOf(imei)), channel)) {
+ if (!identify(imei + Crc.luhnChecksum(Long.parseLong(imei)), channel)) {
return null;
}
}