Fix checkstyle violations in openflow-protocol-impl - part 2
[openflowplugin.git] / openflowjava / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / deserialization / factories / PacketOutInputMessageFactory.java
index 919a8e7401f19697bdf221633689223bc5ecb4f8..1a3cb50205f06ad36ab90e846a6c6bd1ef57c566 100644 (file)
@@ -22,8 +22,9 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.PacketOutInputBuilder;
 
 public class PacketOutInputMessageFactory implements OFDeserializer<PacketOutInput>, DeserializerRegistryInjector {
+    private static final byte PADDING = 6;
+
     private DeserializerRegistry registry;
-    private final byte PADDING = 6;
 
     @Override
     public PacketOutInput deserialize(ByteBuf rawMessage) {
@@ -32,10 +33,10 @@ public class PacketOutInputMessageFactory implements OFDeserializer<PacketOutInp
         builder.setXid(rawMessage.readUnsignedInt());
         builder.setBufferId(rawMessage.readUnsignedInt());
         builder.setInPort(new PortNumber(rawMessage.readUnsignedInt()));
-        int actions_len = rawMessage.readShort();
+        int actionsLen = rawMessage.readShort();
         rawMessage.skipBytes(PADDING);
         CodeKeyMaker keyMaker = CodeKeyMakerFactory.createActionsKeyMaker(EncodeConstants.OF13_VERSION_ID);
-        List<Action> actions = ListDeserializer.deserializeList(EncodeConstants.OF13_VERSION_ID, actions_len,
+        List<Action> actions = ListDeserializer.deserializeList(EncodeConstants.OF13_VERSION_ID, actionsLen,
                 rawMessage, keyMaker, registry);
         builder.setAction(actions);
         byte[] data = new byte[rawMessage.readableBytes()];
@@ -50,4 +51,4 @@ public class PacketOutInputMessageFactory implements OFDeserializer<PacketOutInp
     public void injectDeserializerRegistry(DeserializerRegistry deserializerRegistry) {
         registry = deserializerRegistry;
     }
-}
\ No newline at end of file
+}