X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fraft%2Fmessages%2FServerRemoved.java;h=a7de8ea1a7b5c2e37944ed3ef06d6b3f58d8ba92;hp=3375137adac63d876463ac46982d3626f2f21137;hb=3859df9beca8f13f1ff2b2744ed3470a1715bec3;hpb=660c3e22ca97bc613ea6f6288503620bba6fb233 diff --git a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/ServerRemoved.java b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/ServerRemoved.java index 3375137ada..a7de8ea1a7 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/ServerRemoved.java +++ b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/ServerRemoved.java @@ -5,10 +5,10 @@ * 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 com.google.common.base.Preconditions; +import static java.util.Objects.requireNonNull; + import java.io.Serializable; /** @@ -20,8 +20,8 @@ public class ServerRemoved implements Serializable { private final String serverId; - public ServerRemoved(String serverId) { - this.serverId = Preconditions.checkNotNull(serverId); + public ServerRemoved(final String serverId) { + this.serverId = requireNonNull(serverId); } public String getServerId() {