Further warning removal
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / protocol / serialization / multipart / MultipartRequestPortStatsSerializer.java
index 933499a33f9a11159e626fb300a27137ad7b9e5f..ea7373f5332cc7fdab021b7f682f0ce56d9f1343 100644 (file)
@@ -5,11 +5,9 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.openflowplugin.impl.protocol.serialization.multipart;
 
 import io.netty.buffer.ByteBuf;
-import java.util.Objects;
 import org.opendaylight.openflowjava.protocol.api.extensibility.OFSerializer;
 import org.opendaylight.openflowplugin.api.OFConstants;
 import org.opendaylight.openflowplugin.api.openflow.md.util.OpenflowVersion;
@@ -17,12 +15,11 @@ import org.opendaylight.openflowplugin.openflow.md.util.InventoryDataServiceUtil
 import org.opendaylight.yang.gen.v1.urn.opendaylight.port.statistics.rev131214.multipart.request.multipart.request.body.MultipartRequestPortStats;
 
 public class MultipartRequestPortStatsSerializer implements OFSerializer<MultipartRequestPortStats> {
-
     private static final byte PADDING_IN_MULTIPART_REQUEST_PORTSTATS_BODY = 4;
 
     @Override
     public void serialize(final MultipartRequestPortStats multipartRequestPortStats, final ByteBuf byteBuf) {
-        if (Objects.isNull(multipartRequestPortStats.getNodeConnectorId())) {
+        if (multipartRequestPortStats.getNodeConnectorId() == null) {
             byteBuf.writeInt(OFConstants.OFPP_ANY.intValue());
         } else {
             byteBuf.writeInt(InventoryDataServiceUtil
@@ -33,5 +30,4 @@ public class MultipartRequestPortStatsSerializer implements OFSerializer<Multipa
 
         byteBuf.writeZero(PADDING_IN_MULTIPART_REQUEST_PORTSTATS_BODY);
     }
-
 }