update deprecated transform and addCallback methods
[groupbasedpolicy.git] / renderers / ios-xe / src / main / java / org / opendaylight / groupbasedpolicy / renderer / ios_xe_provider / impl / manager / NodeManager.java
index 3602073807d06b8a345864e801c84b638c80b1f6..8eea628d4c85b279d694114fe09977b069d19004 100644 (file)
@@ -56,6 +56,7 @@ 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.ListenableFuture;
+import com.google.common.util.concurrent.MoreExecutors;
 
 public class NodeManager {
 
@@ -154,7 +155,7 @@ public class NodeManager {
             public void onFailure(@Nullable Throwable throwable) {
                 LOG.warn("Exception thrown when removing node... {}", throwable);
             }
-        });
+        }, MoreExecutors.directExecutor());
     }
 
     /**
@@ -194,7 +195,7 @@ public class NodeManager {
             public void onFailure(@Nullable Throwable throwable) {
                 LOG.warn("Exception thrown when resolving node... {}", throwable);
             }
-        });
+        }, MoreExecutors.directExecutor());
     }
 
     /**