diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-07 14:25:47 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-07 14:25:47 +1300 |
commit | e7bc5f93cd05f27f41bfb25836a04feb511adc17 (patch) | |
tree | fdd2f79116c0403c6bd1fad061b07463379cdc03 /src/org/traccar/protocol/MeitrackFrameDecoder.java | |
parent | 2260e9543dc586300b005c97ca83b2902c414968 (diff) | |
download | trackermap-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.java | 2 |
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); } |