Replace Preconditions.CheckNotNull per RequireNonNull
[bgpcep.git] / bgp / path-selection-mode / src / main / java / org / opendaylight / protocol / bgp / mode / impl / add / AddPathBestPath.java
index 42a86d56005717d5b540390d9956b7a2da6876f2..863a90d1deb08b931c0e6130a9e5e3862b97fb2f 100644 (file)
@@ -7,8 +7,9 @@
  */
 package org.opendaylight.protocol.bgp.mode.impl.add;
 
+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;
@@ -23,7 +24,7 @@ public final class AddPathBestPath extends AbstractBestPath {
 
     public AddPathBestPath(@Nonnull final BestPathState state, @Nonnull final RouteKey key, final int offsetPosition, final Long pathId) {
         super(state);
-        this.routeKey = Preconditions.checkNotNull(key);
+        this.routeKey = requireNonNull(key);
         this.offsetPosition = offsetPosition;
         this.pathId = pathId;
     }