Remove java.desktop dependency
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / DataTreeListenerInfo.java
index 90db2794d32509755b4f5bf171cca72c1f06a911..5137b7c9a397c501bbbcc5361c9cb9a6f6f8e090 100644 (file)
@@ -7,8 +7,9 @@
  */
 package org.opendaylight.controller.cluster.datastore.messages;
 
-import com.google.common.base.Preconditions;
-import java.beans.ConstructorProperties;
+import static java.util.Objects.requireNonNull;
+
+import javax.management.ConstructorParameters;
 
 /**
  * Response to a {@link GetInfo} query from a data tree listener actor.
@@ -21,11 +22,11 @@ public class DataTreeListenerInfo {
     private final boolean isEnabled;
     private final long notificationCount;
 
-    @ConstructorProperties({"listener","registeredPath", "isEnabled", "notificationCount"})
+    @ConstructorParameters({"listener","registeredPath", "isEnabled", "notificationCount"})
     public DataTreeListenerInfo(final String listener, final String registeredPath, final boolean isEnabled,
             final long notificationCount) {
-        this.listener = Preconditions.checkNotNull(listener);
-        this.registeredPath = Preconditions.checkNotNull(registeredPath);
+        this.listener = requireNonNull(listener);
+        this.registeredPath = requireNonNull(registeredPath);
         this.isEnabled = isEnabled;
         this.notificationCount = notificationCount;
     }