Remove Objects.{is,non}Null abuse
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / protocol / serialization / match / EthernetSourceEntrySerializer.java
index 67618adf51aa0c6b5c9baf2f5e01a002fddc9a84..e8fb86ef0ec65a83bd1b40552c2e6ed7ac9eb400 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.match;
 
 import io.netty.buffer.ByteBuf;
-import java.util.Objects;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
 import org.opendaylight.openflowjava.util.ByteBufUtils;
@@ -32,13 +30,12 @@ public class EthernetSourceEntrySerializer extends AbstractMatchEntrySerializer
 
     @Override
     public boolean matchTypeCheck(Match match) {
-        return Objects.nonNull(match.getEthernetMatch())
-                && Objects.nonNull(match.getEthernetMatch().getEthernetSource());
+        return match.getEthernetMatch() != null && match.getEthernetMatch().getEthernetSource() != null;
     }
 
     @Override
     protected boolean getHasMask(Match match) {
-        return Objects.nonNull(match.getEthernetMatch().getEthernetSource().getMask());
+        return match.getEthernetMatch().getEthernetSource().getMask() != null;
     }
 
     @Override
@@ -55,5 +52,4 @@ public class EthernetSourceEntrySerializer extends AbstractMatchEntrySerializer
     protected int getValueLength() {
         return EncodeConstants.MAC_ADDRESS_LENGTH;
     }
-
 }