Fix modernization issues
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / RegisterDataTreeNotificationListenerReply.java
index 7642a90c5f4efd6518e6f1145cb9bfe5f2f62a3b..7feb6c46e631f9a89a309e34cdc562358b88a4c1 100644 (file)
@@ -7,9 +7,10 @@
  */
 package org.opendaylight.controller.cluster.datastore.messages;
 
+import static java.util.Objects.requireNonNull;
+
 import akka.actor.ActorPath;
 import akka.actor.ActorRef;
-import com.google.common.base.Preconditions;
 import java.io.Serializable;
 
 /**
@@ -23,7 +24,7 @@ public class RegisterDataTreeNotificationListenerReply implements Serializable {
     private final ActorRef listenerRegistrationPath;
 
     public RegisterDataTreeNotificationListenerReply(final ActorRef listenerRegistrationPath) {
-        this.listenerRegistrationPath = Preconditions.checkNotNull(listenerRegistrationPath);
+        this.listenerRegistrationPath = requireNonNull(listenerRegistrationPath);
     }
 
     public ActorPath getListenerRegistrationPath() {