Modernize openflowplugin-impl
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / protocol / serialization / multipart / tablefeatures / WildcardsTablePropertySerializer.java
index 3db83831fafe3fcd64afe50ec3e1f91cf6366b82..7cb1b9bb0f3c430babb5c7e927a4b7e219a6dc50 100644 (file)
@@ -7,7 +7,8 @@
  */
 package org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.tablefeatures;
 
-import com.google.common.base.Preconditions;
+import static java.util.Objects.requireNonNull;
+
 import io.netty.buffer.ByteBuf;
 import org.opendaylight.openflowjava.protocol.api.extensibility.OFSerializer;
 import org.opendaylight.openflowjava.protocol.api.extensibility.SerializerRegistry;
@@ -29,7 +30,7 @@ public class WildcardsTablePropertySerializer extends AbstractTablePropertySeria
         property
             .getWildcardSetfield()
             .nonnullSetFieldMatch().values()
-            .forEach(setFieldMatch -> Preconditions.checkNotNull(registry)
+            .forEach(setFieldMatch -> requireNonNull(registry)
                 .<MatchField, OFSerializer<SetFieldMatch>>getSerializer(new MessageTypeKey<>(
                     EncodeConstants.OF_VERSION_1_3, setFieldMatch.getMatchType().implementedInterface()))
                 .serialize(setFieldMatch, byteBuf));