Skip to content

Commit

Permalink
Belatedly remove the GWT-only overloads of Futures.catching and `ca…
Browse files Browse the repository at this point in the history
…tchingAsync` that let callers omit the `Executor`.

We removed these long ago from the non-GWT versions.

RELNOTES=`util.concurrent`: Removed the GWT-only overloads of `Futures.catching` and `catchingAsync` that let callers omit the `Executor`. This matches a change made years ago to the non-GWT API.
PiperOrigin-RevId: 364914418
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed Mar 24, 2021
1 parent a645ccb commit 0ff2f78
Showing 1 changed file with 0 additions and 20 deletions.
Expand Up @@ -14,8 +14,6 @@

package com.google.common.util.concurrent;

import static com.google.common.util.concurrent.MoreExecutors.directExecutor;

import com.google.common.base.Function;
import java.util.concurrent.Executor;

Expand All @@ -31,15 +29,6 @@ abstract class GwtFuturesCatchingSpecialization {
* your own instanceof tests.
*/

/** @deprecated Use the overload that requires an executor. */
@Deprecated
public static <V> ListenableFuture<V> catching(
ListenableFuture<? extends V> input,
Class<Throwable> exceptionType,
Function<? super Throwable, ? extends V> fallback) {
return AbstractCatchingFuture.create(input, exceptionType, fallback, directExecutor());
}

public static <V> ListenableFuture<V> catching(
ListenableFuture<? extends V> input,
Class<Throwable> exceptionType,
Expand All @@ -48,15 +37,6 @@ public static <V> ListenableFuture<V> catching(
return AbstractCatchingFuture.create(input, exceptionType, fallback, executor);
}

/** @deprecated Use the overload that requires an executor. */
@Deprecated
public static <V> ListenableFuture<V> catchingAsync(
ListenableFuture<? extends V> input,
Class<Throwable> exceptionType,
AsyncFunction<? super Throwable, ? extends V> fallback) {
return AbstractCatchingFuture.create(input, exceptionType, fallback, directExecutor());
}

public static <V> ListenableFuture<V> catchingAsync(
ListenableFuture<? extends V> input,
Class<Throwable> exceptionType,
Expand Down

0 comments on commit 0ff2f78

Please sign in to comment.