Replace Preconditions.CheckNotNull per RequireNonNull
[bgpcep.git] / bgp / bmp-impl / src / main / java / org / opendaylight / protocol / bmp / impl / BmpHandlerFactory.java
index d1154de59d91624da341da14bebbe7ce8e05b825..d4c8b5f36479a1a6c5d3ad6abdd4eca9ca4bb58e 100644 (file)
@@ -7,7 +7,7 @@
  */
 package org.opendaylight.protocol.bmp.impl;
 
-import com.google.common.base.Preconditions;
+import static java.util.Objects.requireNonNull;
 
 import io.netty.channel.ChannelHandler;
 import io.netty.channel.ChannelOutboundHandler;
@@ -19,7 +19,7 @@ public class BmpHandlerFactory {
     private final BmpMessageRegistry registry;
 
     public BmpHandlerFactory(final BmpMessageRegistry registry) {
-        this.registry = Preconditions.checkNotNull(registry);
+        this.registry = requireNonNull(registry);
         this.encoder = new BmpMessageToByteEncoder(registry);
     }