*/
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.
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;
}