X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fraft%2Fmessages%2FRequestLeadership.java;h=766c5c4338d4cd5aa5cfd00ec03460a6d8ebc64f;hb=HEAD;hp=5561085539a179939dc1167fc74c8d8c7da58d26;hpb=0c05dff15e4f36c5ecbd26e82309de21f67c8cd5;p=controller.git diff --git a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/RequestLeadership.java b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/RequestLeadership.java index 5561085539..766c5c4338 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/RequestLeadership.java +++ b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/RequestLeadership.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.raft.messages; +import static java.util.Objects.requireNonNull; + import akka.actor.ActorRef; -import com.google.common.base.Preconditions; import java.io.Serializable; /** @@ -22,8 +22,8 @@ public final class RequestLeadership implements Serializable { private final ActorRef replyTo; public RequestLeadership(final String requestedFollowerId, final ActorRef replyTo) { - this.requestedFollowerId = Preconditions.checkNotNull(requestedFollowerId); - this.replyTo = Preconditions.checkNotNull(replyTo); + this.requestedFollowerId = requireNonNull(requestedFollowerId); + this.replyTo = requireNonNull(replyTo); } public String getRequestedFollowerId() {