Replace Preconditions.CheckNotNull per RequireNonNull
[bgpcep.git] / bgp / path-selection-mode / src / main / java / org / opendaylight / protocol / bgp / mode / spi / AbstractBestPath.java
index 7780a19f536cc41de402a65e0b6c57581d0c490d..b6018024448c671df1e0c38b46af64c5d4cf34bc 100644 (file)
@@ -8,9 +8,10 @@
 
 package org.opendaylight.protocol.bgp.mode.spi;
 
+import static java.util.Objects.requireNonNull;
+
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.MoreObjects;
-import com.google.common.base.Preconditions;
 import org.opendaylight.protocol.bgp.mode.api.BestPath;
 import org.opendaylight.protocol.bgp.mode.api.BestPathState;
 import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
@@ -19,7 +20,7 @@ public abstract class AbstractBestPath implements BestPath {
     protected final BestPathState state;
 
     protected AbstractBestPath(final BestPathState state) {
-        this.state = Preconditions.checkNotNull(state);
+        this.state = requireNonNull(state);
     }
 
     protected abstract MoreObjects.ToStringHelper addToStringAttributes(final MoreObjects.ToStringHelper toStringHelper);