aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MeitrackFrameDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-07 14:25:47 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-07 14:25:47 +1300
commite7bc5f93cd05f27f41bfb25836a04feb511adc17 (patch)
treefdd2f79116c0403c6bd1fad061b07463379cdc03 /src/org/traccar/protocol/MeitrackFrameDecoder.java
parent2260e9543dc586300b005c97ca83b2902c414968 (diff)
downloadtrackermap-server-e7bc5f93cd05f27f41bfb25836a04feb511adc17.tar.gz
trackermap-server-e7bc5f93cd05f27f41bfb25836a04feb511adc17.tar.bz2
trackermap-server-e7bc5f93cd05f27f41bfb25836a04feb511adc17.zip
Replace more valueOf with parseXxx
Diffstat (limited to 'src/org/traccar/protocol/MeitrackFrameDecoder.java')
-rw-r--r--src/org/traccar/protocol/MeitrackFrameDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/MeitrackFrameDecoder.java b/src/org/traccar/protocol/MeitrackFrameDecoder.java
index 509e24da2..584b558d0 100644
--- a/src/org/traccar/protocol/MeitrackFrameDecoder.java
+++ b/src/org/traccar/protocol/MeitrackFrameDecoder.java
@@ -37,7 +37,7 @@ public class MeitrackFrameDecoder extends FrameDecoder {
Integer index = ChannelBufferTools.find(buf, buf.readerIndex(), buf.writerIndex(), ",");
if (index != null)
{
- int length = index - buf.readerIndex() + Integer.valueOf(buf.toString(buf.readerIndex() + 3, index - buf.readerIndex() - 3, Charset.defaultCharset()));
+ int length = index - buf.readerIndex() + Integer.parseInt(buf.toString(buf.readerIndex() + 3, index - buf.readerIndex() - 3, Charset.defaultCharset()));
if (buf.readableBytes() >= length) {
return buf.readBytes(length);
}