Remove unneeded cast 24/57624/11
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 22 May 2017 11:35:10 +0000 (13:35 +0200)
committerStephen Kitt <skitt@redhat.com>
Fri, 9 Jun 2017 15:11:47 +0000 (15:11 +0000)
Once mdsal.dom.broker.ShardedDOMDataTree is fixed up, we can remove
this cast.

Change-Id: I042dbf3bf071b7af33876501e3274fc96724e58c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardedDOMDataTree.java

index 35f5e998825951829be49b5e57e36a0ce3615cd4..99c03768ed111bff08a9a8d9fbd8bcbd98e739d6 100644 (file)
@@ -409,9 +409,8 @@ public class DistributedShardedDOMDataTree implements DOMDataTreeService, DOMDat
             final DistributedShardFrontend shard =
                     new DistributedShardFrontend(distributedDataStore, entry.getKey(), prefix);
 
-            @SuppressWarnings("unchecked")
             final DOMDataTreeShardRegistration<DOMDataTreeShard> reg =
-                    (DOMDataTreeShardRegistration) shardedDOMDataTree.registerDataTreeShard(prefix, shard, producer);
+                    shardedDOMDataTree.registerDataTreeShard(prefix, shard, producer);
 
             synchronized (shards) {
                 shards.store(prefix, reg);