commit | a8549d2d801b18b3de8071848e2777b6b362c65d | [log] [tgz] |
---|---|---|
author | boyoung2 <andrew.loyola.jeong@gmail.com> | Fri Nov 23 20:42:37 2018 +0900 |
committer | Jian Li <pyguni@gmail.com> | Wed Dec 26 02:21:27 2018 +0000 |
tree | 6097321292e332ba48d7b0c849e18c9ae03f8726 | |
parent | b4f4fdbceeb860aba69f4f761f9934db2b8faf0f [diff] [blame] |
Modify a annotation and refactor Web UI. Change-Id: I985733e8f4e7d0cda292ed4a240d1250db8e2316
diff --git a/apps/openstacktelemetry/app/src/main/java/org/onosproject/openstacktelemetry/codec/TinaFlowInfoByteBufferCodec.java b/apps/openstacktelemetry/app/src/main/java/org/onosproject/openstacktelemetry/codec/TinaFlowInfoByteBufferCodec.java index 73258ac..2ee625f 100644 --- a/apps/openstacktelemetry/app/src/main/java/org/onosproject/openstacktelemetry/codec/TinaFlowInfoByteBufferCodec.java +++ b/apps/openstacktelemetry/app/src/main/java/org/onosproject/openstacktelemetry/codec/TinaFlowInfoByteBufferCodec.java
@@ -34,6 +34,7 @@ */ public class TinaFlowInfoByteBufferCodec extends ByteBufferCodec<FlowInfo> { + private static final int NUM_RADIX = 16; private static final int MESSAGE_SIZE = 88; private static final String OF_PREFIX = "of:"; @@ -46,7 +47,7 @@ String deviceId = flowInfo.deviceId().toString(); short switchId = (short) Integer.parseInt(deviceId.substring(3, - deviceId.length()), 16); + deviceId.length()), NUM_RADIX); if (flowInfo.srcPort() != null) { srcPort = flowInfo.srcPort().toInt();