diff --git a/caffeine/src/main/java/com/github/benmanes/caffeine/cache/AsyncCacheLoader.java b/caffeine/src/main/java/com/github/benmanes/caffeine/cache/AsyncCacheLoader.java index d2ac373ad1..382f7b6c0b 100644 --- a/caffeine/src/main/java/com/github/benmanes/caffeine/cache/AsyncCacheLoader.java +++ b/caffeine/src/main/java/com/github/benmanes/caffeine/cache/AsyncCacheLoader.java @@ -139,8 +139,9 @@ default CompletableFuture asyncReload( * @return an asynchronous cache loader that delegates to the supplied {@code mappingFunction} * @throws NullPointerException if the mappingFunction is null */ - static AsyncCacheLoader bulk(Function, - ? extends Map> mappingFunction) { + static AsyncCacheLoader bulk( + Function, ? extends Map> + mappingFunction) { return CacheLoader.bulk(mappingFunction); } @@ -162,8 +163,12 @@ static AsyncCacheLoader bulk(Function, * @return an asynchronous cache loader that delegates to the supplied {@code mappingFunction} * @throws NullPointerException if the mappingFunction is null */ - static AsyncCacheLoader bulk(BiFunction, ? super Executor, - ? extends CompletableFuture>> mappingFunction) { + static AsyncCacheLoader bulk( + BiFunction< + ? super Set, + ? super Executor, + ? extends CompletableFuture>> + mappingFunction) { requireNonNull(mappingFunction); return new AsyncCacheLoader<>() { @Override public CompletableFuture asyncLoad(K key, Executor executor) {