Replace Preconditions.CheckNotNull per RequireNonNull
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / BGPHandlerFactory.java
index a59033a8951ac3f5ede826659ad5bd8133f7df57..1e01b0956c5679b3d075d1af4ec9be4e04dee5e6 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.channel.ChannelHandler;
 import io.netty.channel.ChannelOutboundHandler;
@@ -22,7 +23,7 @@ public class BGPHandlerFactory {
     private final MessageRegistry registry;
 
     public BGPHandlerFactory(final MessageRegistry registry) {
-        this.registry = Preconditions.checkNotNull(registry);
+        this.registry = requireNonNull(registry);
         this.encoder = new BGPMessageToByteEncoder(registry);
     }