Remove EncodeConstants.SIZE_OF_{BYTE,SHORT,INT,LONG}_IN_BYTES
[openflowplugin.git] / openflowjava / openflowjava-util / src / main / java / org / opendaylight / openflowjava / util / ByteBufUtils.java
index 4c85aa6dd9a054c663cd216e141ea0ff4b1fa4f3..da0bf849b229a5bdf00d0568f067fab0aeeb1be4 100644 (file)
@@ -262,7 +262,7 @@ public abstract class ByteBufUtils {
         try {
             int offset = 0;
             for (int i = 0; i < EncodeConstants.MAC_ADDRESS_LENGTH - 1; ++i) {
-                if (mac[offset + EncodeConstants.SIZE_OF_BYTE_IN_BYTES] == ':') {
+                if (mac[offset + Byte.BYTES] == ':') {
                     result[i] = UnsignedBytes.checkedCast(hexValue(mac[offset]));
                     offset++;
                 } else {