Fixed netty & checkstyle failures
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / deserialization / factories / PacketOutInputMessageFactory.java
index 6b1ddc94d041fba93059001e9d77a8eaddd02c9d..919a8e7401f19697bdf221633689223bc5ecb4f8 100644 (file)
@@ -38,7 +38,8 @@ public class PacketOutInputMessageFactory implements OFDeserializer<PacketOutInp
         List<Action> actions = ListDeserializer.deserializeList(EncodeConstants.OF13_VERSION_ID, actions_len,
                 rawMessage, keyMaker, registry);
         builder.setAction(actions);
-        byte[] data = rawMessage.readBytes(rawMessage.readableBytes()).array();
+        byte[] data = new byte[rawMessage.readableBytes()];
+        rawMessage.readBytes(data);
         if (data != null) {
             builder.setData(data);
         }