blob: b28c93de915dd37b209c9808d2c230f41561f198 [file] [log] [blame]
import java.util.concurrent.CompletableFuture;
class CompletableFutureTest {
void foo(CompletableFuture<String> future3, CompletableFuture<String> future1) throws Exception {
onFailure(future1.thenApply(v -> future3));
}
private static <T1> CompletableFuture<T1> onFailure(CompletableFuture<T1> future) {
return null;
}
}