From 2260e9543dc586300b005c97ca83b2902c414968 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 7 Oct 2015 14:19:28 +1300 Subject: Replace valueOf with parseXxx calls --- src/org/traccar/helper/ChannelBufferTools.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar/helper') diff --git a/src/org/traccar/helper/ChannelBufferTools.java b/src/org/traccar/helper/ChannelBufferTools.java index 75c16ae50..e9cd21724 100644 --- a/src/org/traccar/helper/ChannelBufferTools.java +++ b/src/org/traccar/helper/ChannelBufferTools.java @@ -140,7 +140,7 @@ public class ChannelBufferTools { int count = in.length() / 2; byte[] out = new byte[count]; for (int i = 0; i < count; i++) { - out[i] = Integer.valueOf(in.substring(i * 2, (i + 1) * 2), 16).byteValue(); + out[i] = (byte) Integer.parseInt(in.substring(i * 2, (i + 1) * 2), 16); } return out; } -- cgit v1.2.3