Replace Preconditions.CheckNotNull per RequireNonNull
[bgpcep.git] / bgp / path-selection-mode / src / main / java / org / opendaylight / protocol / bgp / mode / impl / base / BaseBestPath.java
index 26bd65796cbf805bf4ad3f014d91792d66047994..a42e4a42ff19fb5b898829d0172b41478a13b8a1 100644 (file)
@@ -7,8 +7,9 @@
  */
 package org.opendaylight.protocol.bgp.mode.impl.base;
 
+import static java.util.Objects.requireNonNull;
+
 import com.google.common.base.MoreObjects.ToStringHelper;
-import com.google.common.base.Preconditions;
 import com.google.common.primitives.UnsignedInteger;
 import javax.annotation.Nonnull;
 import org.opendaylight.protocol.bgp.mode.api.BestPathState;
@@ -22,7 +23,7 @@ final class BaseBestPath extends AbstractBestPath {
 
     BaseBestPath(@Nonnull final UnsignedInteger routerId, @Nonnull final BestPathState state) {
         super(state);
-        this.routerId = Preconditions.checkNotNull(routerId);
+        this.routerId = requireNonNull(routerId);
     }
 
     @Override