Specify MoreExecutors.directExecutor() instead of relying on a deprecated
method.
Change-Id: I097672d7624f5d32957fac3b18b8205c929c5729
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
91fb8d5b337b707717785aa4e988c7a5d5ead2a7)
AbstractClusterSingletonServiceProviderImpl.this, throwable);
cleanup();
}
AbstractClusterSingletonServiceProviderImpl.this, throwable);
cleanup();
}
+ }, MoreExecutors.directExecutor());
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.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.ArrayList;
import java.util.List;
import com.google.common.util.concurrent.SettableFuture;
import java.util.ArrayList;
import java.util.List;
public void onSuccess(final List<Void> nulls) {
onServicesStopped();
}
public void onSuccess(final List<Void> nulls) {
onServicesStopped();
}
+ }, MoreExecutors.directExecutor());
}
void onServicesStopped() {
}
void onServicesStopped() {