Remove Objects.{is,non}Null abuse
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / protocol / deserialization / match / PbbEntryDeserializer.java
index 37eaefa36f19edd931f6d121565370a3a25dd817..7744a639ffc2d22919b43ef0b2bfbc6c7fecf619 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.deserialization.match;
 
 import io.netty.buffer.ByteBuf;
-import java.util.Objects;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.MatchBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.match.ProtocolMatchFieldsBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.protocol.match.fields.PbbBuilder;
@@ -27,11 +25,11 @@ public class PbbEntryDeserializer extends AbstractMatchEntryDeserializer {
             pbbBuilder.setPbbMask((long) message.readUnsignedMedium());
         }
 
-        if (Objects.isNull(builder.getProtocolMatchFields())) {
+        if (builder.getProtocolMatchFields() == null) {
             builder.setProtocolMatchFields(new ProtocolMatchFieldsBuilder()
                     .setPbb(pbbBuilder.build())
                     .build());
-        } else if (Objects.isNull(builder.getProtocolMatchFields().getPbb())) {
+        } else if (builder.getProtocolMatchFields().getPbb() == null) {
             builder.setProtocolMatchFields(new ProtocolMatchFieldsBuilder(builder.getProtocolMatchFields())
                     .setPbb(pbbBuilder.build())
                     .build());