Constants introduced
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / serialization / factories / OF10VendorInputMessageFactory.java
index 8306db2f67366b1a12df49f3fb832581902e38f7..d4c851e8f6b36e0fc1567caa5041fce9bcbf499e 100644 (file)
@@ -5,11 +5,12 @@ import io.netty.buffer.ByteBuf;
 \r
 import org.opendaylight.openflowjava.protocol.impl.serialization.OFSerializer;\r
 import org.opendaylight.openflowjava.protocol.impl.util.ByteBufUtils;\r
+import org.opendaylight.openflowjava.protocol.impl.util.EncodeConstants;\r
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.ExperimenterInput;\r
 \r
 /**\r
+ * Translates Vendor messages\r
  * @author michal.polkorab\r
- *\r
  */\r
 public class OF10VendorInputMessageFactory implements OFSerializer<ExperimenterInput> {\r
 \r
@@ -45,7 +46,7 @@ public class OF10VendorInputMessageFactory implements OFSerializer<ExperimenterI
 \r
     @Override\r
     public int computeLength(ExperimenterInput message) {\r
-        int length = MESSAGE_LENGTH + Integer.SIZE / Byte.SIZE;\r
+        int length = MESSAGE_LENGTH + EncodeConstants.SIZE_OF_INT_IN_BYTES;\r
         byte[] data = message.getData();\r
         if (data != null) {\r
             length += data.length;\r