Replace deprecated Futures.addCallback by the newer version
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / netconf / sal / restconf / impl / BatchedExistenceCheck.java
index a1765e56d822ba0f13ec02add02ff21586e16bb0..f36caa0d2dc46a965b1644b16f0359dc3f40627f 100644 (file)
@@ -10,6 +10,7 @@ package org.opendaylight.netconf.sal.restconf.impl;
 import com.google.common.util.concurrent.FutureCallback;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.MoreExecutors;
 import com.google.common.util.concurrent.SettableFuture;
 import java.util.AbstractMap.SimpleImmutableEntry;
 import java.util.Collection;
@@ -59,7 +60,7 @@ final class BatchedExistenceCheck {
 
                     ret.complete(path, ReadFailedException.MAPPER.apply(e));
                 }
-            });
+            }, MoreExecutors.directExecutor());
         }
 
         return ret;