Constants introduced
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / deserialization / factories / QueueGetConfigReplyMessageFactory.java
index 9422b3b7a22d0d77ec73e5d5bb8c37e4f2c82242..3cccbe519e3548d8e85268f71195522b15e34e91 100644 (file)
@@ -7,6 +7,7 @@ import java.util.ArrayList;
 import java.util.List;\r
 \r
 import org.opendaylight.openflowjava.protocol.impl.deserialization.OFDeserializer;\r
+import org.opendaylight.openflowjava.protocol.impl.util.EncodeConstants;\r
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev131002.ExperimenterQueuePropertyBuilder;\r
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev131002.RateQueueProperty;\r
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev131002.RateQueuePropertyBuilder;\r
@@ -97,7 +98,7 @@ public class QueueGetConfigReplyMessageFactory implements OFDeserializer<GetQueu
                 expBuilder.setExperimenter(input.readUnsignedInt());\r
                 input.skipBytes(PADDING_IN_EXPERIMENTER_QUEUE_PROPERTY);\r
                 expBuilder.setData(input.readBytes(currentPropertyLength\r
-                        - Integer.SIZE / Byte.SIZE - PADDING_IN_EXPERIMENTER_QUEUE_PROPERTY).array());\r
+                        - EncodeConstants.SIZE_OF_INT_IN_BYTES - PADDING_IN_EXPERIMENTER_QUEUE_PROPERTY).array());\r
                 propertiesBuilder.addAugmentation(RateQueueProperty.class, expBuilder.build());\r
             }\r
             propertiesList.add(propertiesBuilder.build());\r