Replace Preconditions.CheckNotNull per RequireNonNull
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / BGPMessageToByteEncoder.java
index 7d576920e5c8bfcfd0aa6e101e75fdeb3d36d2ef..58c35513e2cf83f5c4d885e92cbf37d3c9c6145c 100644 (file)
@@ -7,7 +7,8 @@
  */
 package org.opendaylight.protocol.bgp.rib.impl;
 
-import com.google.common.base.Preconditions;
+import static java.util.Objects.requireNonNull;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.ByteBufUtil;
 import io.netty.channel.ChannelHandler.Sharable;
@@ -27,7 +28,7 @@ final class BGPMessageToByteEncoder extends MessageToByteEncoder<Notification> {
     private final MessageRegistry registry;
 
     BGPMessageToByteEncoder(final MessageRegistry registry) {
-        this.registry = Preconditions.checkNotNull(registry);
+        this.registry = requireNonNull(registry);
     }
 
     @Override