*/
package org.opendaylight.controller.cluster.datastore.messages;
-import com.google.common.base.Preconditions;
+import static java.util.Objects.requireNonNull;
+
import java.util.Collection;
import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeCandidate;
/**
* A message about a DataTree having been changed. The message is not
* serializable on purpose. For delegating the change across cluster nodes,
- * this needs to be intercepted by a local agent and forwarded as
- * a {@link DataTreeDelta}.
+ * this needs to be intercepted by a local agent and forwarded as reconstructed
+ * candidate.
*/
public final class DataTreeChanged {
private final Collection<DataTreeCandidate> changes;
public DataTreeChanged(final Collection<DataTreeCandidate> changes) {
- this.changes = Preconditions.checkNotNull(changes);
+ this.changes = requireNonNull(changes);
}
/**