Fix modernization issues
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / databroker / actors / dds / GetClientRequest.java
index db9142474720fea4b37d8cc55a85e686afc5a14f..7d9d74d8ea5ede282c50d7d149072b12e59cd99a 100644 (file)
@@ -7,8 +7,9 @@
  */
 package org.opendaylight.controller.cluster.databroker.actors.dds;
 
+import static java.util.Objects.requireNonNull;
+
 import akka.actor.ActorRef;
-import com.google.common.base.Preconditions;
 
 /**
  * Request the ClientIdentifier from a particular actor. Response is an instance of {@link DataStoreClient}.
@@ -19,7 +20,7 @@ final class GetClientRequest {
     private final ActorRef replyTo;
 
     GetClientRequest(final ActorRef replyTo) {
-        this.replyTo = Preconditions.checkNotNull(replyTo);
+        this.replyTo = requireNonNull(replyTo);
     }
 
     ActorRef getReplyTo() {