X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fshardmanager%2FSwitchShardBehavior.java;h=be5044270be7077b7b6f7697877208bcdbeade1d;hp=63b8f65d420ffb9600c148ebc33db28e0d925f63;hb=127042ea7e148d9dc0282acc3780b4754ca69e12;hpb=1e8d188e98614a1f3d781b2f80d61fcd0afde368 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/shardmanager/SwitchShardBehavior.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/shardmanager/SwitchShardBehavior.java index 63b8f65d42..be5044270b 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/shardmanager/SwitchShardBehavior.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/shardmanager/SwitchShardBehavior.java @@ -5,11 +5,11 @@ * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ - package org.opendaylight.controller.cluster.datastore.shardmanager; -import com.google.common.base.Preconditions; -import javax.annotation.Nullable; +import static java.util.Objects.requireNonNull; + +import org.eclipse.jdt.annotation.Nullable; import org.opendaylight.controller.cluster.datastore.identifiers.ShardIdentifier; import org.opendaylight.controller.cluster.raft.RaftState; @@ -19,7 +19,7 @@ final class SwitchShardBehavior { private final long term; SwitchShardBehavior(final ShardIdentifier shardId, final RaftState newState, final long term) { - this.newState = Preconditions.checkNotNull(newState); + this.newState = requireNonNull(newState); this.shardId = shardId; this.term = term; }