Remove EncodeConstants.SIZE_OF_{BYTE,SHORT,INT,LONG}_IN_BYTES
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / protocol / deserialization / util / ActionUtil.java
index 85156baafc700f35ac61e9ee926fd73b80618d10..9ef95ce1bfebb1179f677daa82e0362d3a4f10af 100644 (file)
@@ -44,8 +44,7 @@ public final class ActionUtil {
         final Long expId;
 
         if (type == EncodeConstants.EXPERIMENTER_VALUE) {
-            expId = message.getUnsignedInt(message.readerIndex()
-                    + 2 * EncodeConstants.SIZE_OF_SHORT_IN_BYTES);
+            expId = message.getUnsignedInt(message.readerIndex() + 2 * Short.BYTES);
         } else {
             expId = null;
         }
@@ -83,8 +82,7 @@ public final class ActionUtil {
         final Long expId;
 
         if (type == EncodeConstants.EXPERIMENTER_VALUE) {
-            expId = message.getUnsignedInt(message.readerIndex()
-                    + 2 * EncodeConstants.SIZE_OF_SHORT_IN_BYTES);
+            expId = message.getUnsignedInt(message.readerIndex() + 2 * Short.BYTES);
         } else {
             expId = null;
         }