Bump to odlparent 2.0.0
[openflowplugin.git] / openflowplugin / src / main / java / org / opendaylight / openflowplugin / openflow / md / core / sal / OFRpcTaskUtil.java
index be7295dbc4761c2342ca2bc0b37e4179146a0a0a..131e37dfd029cceacd74a0af6d674c3bcc0ea6a3 100644 (file)
@@ -43,12 +43,6 @@ import org.slf4j.LoggerFactory;
  */
 public abstract class OFRpcTaskUtil {
     protected static final Logger LOG = LoggerFactory.getLogger(OFRpcTaskUtil.class);
-    /**
-     * @param taskContext
-     * @param isBarrier
-     * @param cookie
-     * @return rpcResult of given type, containing wrapped errors of barrier sending (if any) or success
-     */
     private OFRpcTaskUtil() {
         //hiding implicit constructor
     }
@@ -147,7 +141,7 @@ public abstract class OFRpcTaskUtil {
         ListenableFuture<RpcResult<T>> chainResult = originalResult;
         if (MoreObjects.firstNonNull(task.isBarrier(), Boolean.FALSE)) {
 
-            chainResult = Futures.transform(originalResult, new AsyncFunction<RpcResult<T>, RpcResult<T>>() {
+            chainResult = Futures.transformAsync(originalResult, new AsyncFunction<RpcResult<T>, RpcResult<T>>() {
 
                 @Override
                 public ListenableFuture<RpcResult<T>> apply(final RpcResult<T> input) throws Exception {