X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FModifiedDataTreeCandidateNode.java;h=44038ecd0ab6df29249ac3e0500ab322d89847fd;hb=f6f6dcaf827bcad41a3f9045f2dc74a36371e1b4;hp=208ec33967ffe50c9f5d96d4a643cf74a2f5cb90;hpb=53090b106117e873f6a69a04290ee3bdb2cdf975;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ModifiedDataTreeCandidateNode.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ModifiedDataTreeCandidateNode.java index 208ec33967..44038ecd0a 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ModifiedDataTreeCandidateNode.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ModifiedDataTreeCandidateNode.java @@ -22,13 +22,13 @@ import org.opendaylight.yangtools.yang.data.api.schema.tree.ModificationType; abstract class ModifiedDataTreeCandidateNode extends AbstractDataTreeCandidateNode { private final Collection children; - private ModifiedDataTreeCandidateNode(final Collection children) { - super(ModificationType.SUBTREE_MODIFIED); + private ModifiedDataTreeCandidateNode(final ModificationType type, final Collection children) { + super(type); this.children = Preconditions.checkNotNull(children); } static DataTreeCandidateNode create(final Collection children) { - return new ModifiedDataTreeCandidateNode(children) { + return new ModifiedDataTreeCandidateNode(ModificationType.SUBTREE_MODIFIED, children) { @Override public PathArgument getIdentifier() { throw new UnsupportedOperationException("Root node does not have an identifier"); @@ -36,8 +36,8 @@ abstract class ModifiedDataTreeCandidateNode extends AbstractDataTreeCandidateNo }; } - static DataTreeCandidateNode create(final PathArgument identifier, final Collection children) { - return new ModifiedDataTreeCandidateNode(children) { + static DataTreeCandidateNode create(final PathArgument identifier, final ModificationType type, final Collection children) { + return new ModifiedDataTreeCandidateNode(type, children) { @Override public final PathArgument getIdentifier() { return identifier;