From b38a5df563e5174d18b6627d0bc40490f8f6a339 Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Wed, 27 Jul 2022 13:54:09 +0200 Subject: [PATCH] Javadoc --- .../java/org/springframework/util/concurrent/FutureUtils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-core/src/main/java/org/springframework/util/concurrent/FutureUtils.java b/spring-core/src/main/java/org/springframework/util/concurrent/FutureUtils.java index b0b1406fce..93fa7e333a 100644 --- a/spring-core/src/main/java/org/springframework/util/concurrent/FutureUtils.java +++ b/spring-core/src/main/java/org/springframework/util/concurrent/FutureUtils.java @@ -41,6 +41,7 @@ public abstract class FutureUtils { * @param callable a function that returns the value to be used, or throws * an exception * @return the new CompletableFuture + * @see CompletableFuture#supplyAsync(Supplier) */ public static CompletableFuture callAsync(Callable callable) { Assert.notNull(callable, "Callable must not be null"); @@ -52,11 +53,12 @@ public abstract class FutureUtils { /** * Return a new {@code CompletableFuture} that is asynchronously completed * by a task running in the given executor with the value obtained - * by calling the given Supplier. + * by calling the given {@code Callable}. * @param callable a function that returns the value to be used, or throws * an exception * @param executor the executor to use for asynchronous execution * @return the new CompletableFuture + * @see CompletableFuture#supplyAsync(Supplier, Executor) */ public static CompletableFuture callAsync(Callable callable, Executor executor) { Assert.notNull(callable, "Callable must not be null");