Clean up a few factories
[openflowplugin.git] / openflowjava / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / deserialization / factories / EchoReplyMessageFactory.java
index 49e558b5212dc13b97db683245e8389a6d8d2080..819f94f77adbc9b3fea2cd6c37d6232f60e521d7 100644 (file)
@@ -23,9 +23,9 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731
 public class EchoReplyMessageFactory extends VersionAssignableFactory<EchoOutput> {
     @Override
     public EchoOutput deserialize(final ByteBuf rawMessage) {
-        EchoOutputBuilder builder = new EchoOutputBuilder();
-        builder.setVersion(getVersion());
-        builder.setXid(readUint32(rawMessage));
+        final EchoOutputBuilder builder = new EchoOutputBuilder()
+            .setVersion(getVersion())
+            .setXid(readUint32(rawMessage));
         int remainingBytes = rawMessage.readableBytes();
         if (remainingBytes > 0) {
             byte[] data = new byte[remainingBytes];