*/
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;
private final MessageRegistry registry;
public BGPHandlerFactory(final MessageRegistry registry) {
- this.registry = Preconditions.checkNotNull(registry);
+ this.registry = requireNonNull(registry);
this.encoder = new BGPMessageToByteEncoder(registry);
}