diff options
author | 2017-03-23 17:20:58 +0000 | |
---|---|---|
committer | 2017-03-23 17:54:59 +0000 | |
commit | 73b7b2ef372310df1418b841a1250f7cb49f2c60 (patch) | |
tree | 602fb12d1a3d9e29c79a9c3aa6a7b3b61c207e2f /src/main/java/com/google/devtools/build/lib/query2/engine | |
parent | cb8295848ad15335cac7a005209a283b024f9b00 (diff) |
Global cleanup change.
--
PiperOrigin-RevId: 151019690
MOS_MIGRATED_REVID=151019690
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/query2/engine')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/query2/engine/AbstractQueryEnvironment.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/query2/engine/AbstractQueryEnvironment.java b/src/main/java/com/google/devtools/build/lib/query2/engine/AbstractQueryEnvironment.java index 6bc7217b16..80ded4ffea 100644 --- a/src/main/java/com/google/devtools/build/lib/query2/engine/AbstractQueryEnvironment.java +++ b/src/main/java/com/google/devtools/build/lib/query2/engine/AbstractQueryEnvironment.java @@ -13,6 +13,8 @@ // limitations under the License. package com.google.devtools.build.lib.query2.engine; +import static com.google.common.util.concurrent.MoreExecutors.directExecutor; + import com.google.common.base.Function; import com.google.common.base.Throwables; import com.google.common.collect.ImmutableList; @@ -178,7 +180,7 @@ public abstract class AbstractQueryEnvironment<T> implements QueryEnvironment<T> public <R> QueryTaskFuture<R> whenAllSucceedCall( Iterable<? extends QueryTaskFuture<?>> futures, QueryTaskCallable<R> callable) { return QueryTaskFutureImpl.ofDelegate( - Futures.whenAllSucceed(cast(futures)).call(callable)); + Futures.whenAllSucceed(cast(futures)).call(callable, directExecutor())); } @Override @@ -193,7 +195,8 @@ public abstract class AbstractQueryEnvironment<T> implements QueryEnvironment<T> public ListenableFuture<T2> apply(T1 input) throws Exception { return (QueryTaskFutureImpl<T2>) function.apply(input); } - })); + }, + directExecutor())); } protected static Iterable<QueryTaskFutureImpl<?>> cast( |