Replace Preconditions.CheckNotNull per RequireNonNull
[bgpcep.git] / pcep / impl / src / main / java / org / opendaylight / protocol / pcep / impl / PCEPHandlerFactory.java
index 7768f373f83a285e66c5ee421dc5057e51dd1f88..10944c5c272d8f4db90f113e7bf323352c0195c0 100644 (file)
@@ -7,7 +7,7 @@
  */
 package org.opendaylight.protocol.pcep.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 +22,7 @@ public final class PCEPHandlerFactory {
     private final ChannelOutboundHandler encoder;
 
     public PCEPHandlerFactory(final MessageRegistry registry) {
-        this.registry = Preconditions.checkNotNull(registry);
+        this.registry = requireNonNull(registry);
         this.encoder = new PCEPMessageToByteEncoder(registry);
     }