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%2Futils%2FNormalizedNodeAggregator.java;h=cdbad0b29df657e3871b93de8be18b19978ea702;hp=c0965675e0cf8675f9b5a13157d2ba47bd6f9c99;hb=925cb4a228d0fda99c7bfeb432eb25285a223887;hpb=cab1d5845cb951fe31a3243653ed567583dc73c1 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/NormalizedNodeAggregator.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/NormalizedNodeAggregator.java index c0965675e0..cdbad0b29d 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/NormalizedNodeAggregator.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/NormalizedNodeAggregator.java @@ -25,8 +25,9 @@ public class NormalizedNodeAggregator { private final List>> nodes; private final DataTree dataTree; - private NormalizedNodeAggregator(final YangInstanceIdentifier rootIdentifier, final List>> nodes, - final SchemaContext schemaContext, LogicalDatastoreType logicalDatastoreType) { + private NormalizedNodeAggregator(final YangInstanceIdentifier rootIdentifier, + final List>> nodes, final SchemaContext schemaContext, + LogicalDatastoreType logicalDatastoreType) { this.rootIdentifier = rootIdentifier; this.nodes = nodes; this.dataTree = InMemoryDataTreeFactory.getInstance().create( @@ -36,18 +37,11 @@ public class NormalizedNodeAggregator { } /** - * Combine data from all the nodes in the list into a tree with root as rootIdentifier - * - * @param nodes - * @param schemaContext - * @param logicalDatastoreType - * @return - * @throws DataValidationFailedException + * Combine data from all the nodes in the list into a tree with root as rootIdentifier. */ public static Optional> aggregate(final YangInstanceIdentifier rootIdentifier, - final List>> nodes, - final SchemaContext schemaContext, - LogicalDatastoreType logicalDatastoreType) throws DataValidationFailedException { + final List>> nodes, final SchemaContext schemaContext, + LogicalDatastoreType logicalDatastoreType) throws DataValidationFailedException { return new NormalizedNodeAggregator(rootIdentifier, nodes, schemaContext, logicalDatastoreType).aggregate(); }