aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-07 14:19:28 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-07 14:19:28 +1300
commit2260e9543dc586300b005c97ca83b2902c414968 (patch)
tree0ac295e51c084fae971684f5e5ac114ebc733f09 /src/org/traccar/protocol/MeiligaoProtocolDecoder.java
parent83382e14d92cadaa40c62d07cdba05a6ded5af83 (diff)
downloadtrackermap-server-2260e9543dc586300b005c97ca83b2902c414968.tar.gz
trackermap-server-2260e9543dc586300b005c97ca83b2902c414968.tar.bz2
trackermap-server-2260e9543dc586300b005c97ca83b2902c414968.zip
Replace valueOf with parseXxx calls
Diffstat (limited to 'src/org/traccar/protocol/MeiligaoProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/MeiligaoProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
index a7d8a884e..d2f6985dc 100644
--- a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
+++ b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
@@ -100,7 +100,7 @@ public class MeiligaoProtocolDecoder extends BaseProtocolDecoder {
if (id.length() == 14) {
// Try to recreate full IMEI number
// Sometimes first digit is cut, so this won't work
- if (identify(id + Checksum.luhn(Long.valueOf(id)), channel, null, false)) {
+ if (identify(id + Checksum.luhn(Long.parseLong(id)), channel, null, false)) {
return true;
}
}