Skip to content

Commit

Permalink
Leave the value type of the CompletableFuture in asMap unspecified.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpovirk committed Dec 3, 2024
1 parent e9e5013 commit 7b93d04
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ CompletableFuture<Map<K, V>> getAll(Iterable<? extends K> keys,
*
* @return a thread-safe view of this cache supporting all of the optional {@link Map} operations
*/
ConcurrentMap<K, CompletableFuture<V>> asMap();
@NullUnmarked
@NonNull ConcurrentMap<@NonNull K, @NonNull CompletableFuture<V>> asMap();

/**
* Returns a view of the entries stored in this cache as a synchronous {@link Cache}. A mapping is
Expand Down

0 comments on commit 7b93d04

Please sign in to comment.