Remove EncodeConstants.SIZE_OF_{BYTE,SHORT,INT,LONG}_IN_BYTES
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / protocol / deserialization / messages / PacketInMessageDeserializer.java
index c4f6f09044dcd91a05ec807a6d2930eae0fc35ee..dba93fda2416337a357ef3f2677e9758aed0e5db 100644 (file)
@@ -56,7 +56,7 @@ public class PacketInMessageDeserializer implements OFDeserializer<PacketInMessa
                                 .forValue(message.readUnsignedByte())))
                 .setTableId(new TableId(message.readUnsignedByte()));
 
-        final byte[] cookie = new byte[EncodeConstants.SIZE_OF_LONG_IN_BYTES];
+        final byte[] cookie = new byte[Long.BYTES];
         message.readBytes(cookie);
 
         packetInMessageBuilder