Replace deprecated Futures.addCallback by the newer version
[netconf.git] / netconf / sal-netconf-connector / src / main / java / org / opendaylight / netconf / sal / connect / netconf / sal / NetconfDeviceTopologyAdapter.java
index 7667ba28bcb924a904175e9e32fd3e7dbebead17..41609b89c4fdd52950b336440adc643a52ee786b 100644 (file)
@@ -12,6 +12,7 @@ import com.google.common.base.Preconditions;
 import com.google.common.util.concurrent.CheckedFuture;
 import com.google.common.util.concurrent.FutureCallback;
 import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.MoreExecutors;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
@@ -242,8 +243,7 @@ public final class NetconfDeviceTopologyAdapter implements AutoCloseable {
                 throw new IllegalStateException(
                         id + "  Transaction(" + txType + ") not committed correctly", throwable);
             }
-        });
-
+        }, MoreExecutors.directExecutor());
     }
 
     private static Node getNodeWithId(final RemoteDeviceId id) {