From: Robert Varga Date: Mon, 25 Jan 2016 18:45:54 +0000 (+0100) Subject: Remove deprecated ShardDataTree constructor X-Git-Tag: release/boron~420 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=07b488245050266879e5f78980708569e5aa8416 Remove deprecated ShardDataTree constructor The constructor without a TreeType has been deprecated in Beryllium, remove it now. Change-Id: I3248926594b892edaa931db2f1b77a0ef1dec145 Signed-off-by: Robert Varga --- diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTree.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTree.java index be2e6d47fb..64eb6c87dc 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTree.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTree.java @@ -60,14 +60,6 @@ public class ShardDataTree extends ShardDataTreeTransactionParent { updateSchemaContext(schemaContext); } - /** - * @deprecated Use {@link #ShardDataTree(SchemaContext, TreeType)} instead. - */ - @Deprecated - public ShardDataTree(final SchemaContext schemaContext) { - this(schemaContext, TreeType.OPERATIONAL); - } - public TipProducingDataTree getDataTree() { return dataTree; } diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreIntegrationTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreIntegrationTest.java index 8585cc6acd..084dc828c7 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreIntegrationTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreIntegrationTest.java @@ -78,6 +78,7 @@ import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode; import org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode; import org.opendaylight.yangtools.yang.data.api.schema.MapNode; import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode; +import org.opendaylight.yangtools.yang.data.api.schema.tree.TreeType; import org.opendaylight.yangtools.yang.data.impl.schema.ImmutableNodes; import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.ImmutableContainerNodeBuilder; @@ -1168,7 +1169,7 @@ public class DistributedDataStoreIntegrationTest { CarsModel.newCarEntry("optima", BigInteger.valueOf(20000L)), CarsModel.newCarEntry("sportage", BigInteger.valueOf(30000L)))); - ShardDataTree dataTree = new ShardDataTree(SchemaContextHelper.full()); + ShardDataTree dataTree = new ShardDataTree(SchemaContextHelper.full(), TreeType.OPERATIONAL); AbstractShardTest.writeToStore(dataTree, CarsModel.BASE_PATH, carsNode); NormalizedNode root = AbstractShardTest.readStore(dataTree.getDataTree(), YangInstanceIdentifier.builder().build()); @@ -1177,7 +1178,7 @@ public class DistributedDataStoreIntegrationTest { Collections.emptyList(), 2, 1, 2, 1, 1, "member-1"); NormalizedNode peopleNode = PeopleModel.create(); - dataTree = new ShardDataTree(SchemaContextHelper.full()); + dataTree = new ShardDataTree(SchemaContextHelper.full(), TreeType.OPERATIONAL); AbstractShardTest.writeToStore(dataTree, PeopleModel.BASE_PATH, peopleNode); root = AbstractShardTest.readStore(dataTree.getDataTree(), YangInstanceIdentifier.builder().build());