X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fmessages%2FRemoveShardReplica.java;h=5da3a201e88a7d71b5800eb44eed63618be89497;hb=99f80f27bee37bb23e345420bf14bb7bb4793c28;hp=0325ee9f2baa38af39d658efcca9c6a29b7d6e22;hpb=925cb4a228d0fda99c7bfeb432eb25285a223887;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/RemoveShardReplica.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/RemoveShardReplica.java index 0325ee9f2b..5da3a201e8 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/RemoveShardReplica.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/RemoveShardReplica.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.messages; -import com.google.common.base.Preconditions; -import javax.annotation.Nonnull; +import static java.util.Objects.requireNonNull; + +import org.eclipse.jdt.annotation.NonNull; import org.opendaylight.controller.cluster.access.concepts.MemberName; /** @@ -26,9 +26,9 @@ public class RemoveShardReplica { * * @param shardName name of the local shard that is to be dynamically removed. */ - public RemoveShardReplica(@Nonnull String shardName, @Nonnull MemberName memberName) { - this.shardName = Preconditions.checkNotNull(shardName, "shardName should not be null"); - this.memberName = Preconditions.checkNotNull(memberName, "memberName should not be null"); + public RemoveShardReplica(@NonNull String shardName, @NonNull MemberName memberName) { + this.shardName = requireNonNull(shardName, "shardName should not be null"); + this.memberName = requireNonNull(memberName, "memberName should not be null"); } public String getShardName() {