X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fpersisted%2FAbstractDataTreeCandidateNode.java;h=8ef201c314aa6a280129e1fce4b8a1a0a31cdf07;hp=6c6a5af7545225cdfc86a42ab7e251786e64e515;hb=3859df9beca8f13f1ff2b2744ed3470a1715bec3;hpb=20a32e6459fd1e27e7669bf1ebc7742b96787b94 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/persisted/AbstractDataTreeCandidateNode.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/persisted/AbstractDataTreeCandidateNode.java index 6c6a5af754..8ef201c314 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/persisted/AbstractDataTreeCandidateNode.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/persisted/AbstractDataTreeCandidateNode.java @@ -7,7 +7,8 @@ */ package org.opendaylight.controller.cluster.datastore.persisted; -import com.google.common.base.Preconditions; +import static java.util.Objects.requireNonNull; + import java.util.Collection; import java.util.Optional; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument; @@ -26,11 +27,11 @@ abstract class AbstractDataTreeCandidateNode implements DataTreeCandidateNode { private final ModificationType type; protected AbstractDataTreeCandidateNode(final ModificationType type) { - this.type = Preconditions.checkNotNull(type); + this.type = requireNonNull(type); } @Override - public final DataTreeCandidateNode getModifiedChild(final PathArgument identifier) { + public final Optional getModifiedChild(final PathArgument identifier) { throw new UnsupportedOperationException("Not implemented"); }