Mechanical code cleanup (sal-cluster-admin)
[controller.git] / opendaylight / md-sal / sal-cluster-admin / src / main / java / org / opendaylight / controller / cluster / datastore / admin / ClusterAdminRpcService.java
index 617120a0489aa459ae3d78abf8a7759f6fa91fab..1d39fd4caccc8e72958552e18f07bc4258328691 100644 (file)
@@ -364,7 +364,7 @@ public class ClusterAdminRpcService implements ClusterAdminService {
         for(String shardName: allShardNames) {
             ListenableFuture<T> future = this.<T>ask(actorContext.getShardManager(), messageSupplier.apply(shardName),
                     SHARD_MGR_TIMEOUT);
         for(String shardName: allShardNames) {
             ListenableFuture<T> future = this.<T>ask(actorContext.getShardManager(), messageSupplier.apply(shardName),
                     SHARD_MGR_TIMEOUT);
-            shardResultData.add(new SimpleEntry<ListenableFuture<T>, ShardResultBuilder>(future,
+            shardResultData.add(new SimpleEntry<>(future,
                     new ShardResultBuilder().setShardName(shardName).setDataStoreType(dataStoreType)));
         }
     }
                     new ShardResultBuilder().setShardName(shardName).setDataStoreType(dataStoreType)));
         }
     }