Replace Preconditions.CheckNotNull per RequireNonNull
[bgpcep.git] / bgp / topology-provider / src / test / java / org / opendaylight / bgpcep / bgp / topology / provider / AbstractTopologyBuilderTest.java
index ddf7e3db67f0701c167d6c7908ea44d15b1785b2..266a4ba5a24d0aa0dc00b1c27a3dbe8856165306 100644 (file)
@@ -8,7 +8,8 @@
 
 package org.opendaylight.bgpcep.bgp.topology.provider;
 
-import com.google.common.base.Preconditions;
+import static java.util.Objects.requireNonNull;
+
 import java.util.Collections;
 import org.junit.Before;
 import org.opendaylight.controller.md.sal.binding.api.WriteTransaction;
@@ -28,7 +29,7 @@ import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 public abstract class AbstractTopologyBuilderTest extends AbstractConcurrentDataBrokerTest {
     static final TopologyId TEST_TOPOLOGY_ID = new TopologyId("test-topo");
     static final RibReference LOC_RIB_REF = new DefaultRibReference(InstanceIdentifier.create(BgpRib.class)
-        .child(Rib.class, new RibKey(Preconditions.checkNotNull(new RibId("test-rib")))));
+        .child(Rib.class, new RibKey(requireNonNull(new RibId("test-rib")))));
 
     @Before
     public void setUp() {