Skip to content

Commit 3d0632d

Browse files
committed
Fix uncheckedCacheGet javadoc
It was incorrectly stating that the method may throw `ExecutionException`.
1 parent 7d6dcb8 commit 3d0632d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/trino-cache/src/main/java/io/trino/cache/CacheUtils.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
package io.trino.cache;
1515

1616
import com.google.common.cache.Cache;
17-
import com.google.common.util.concurrent.ExecutionError;
1817
import com.google.common.util.concurrent.UncheckedExecutionException;
1918

2019
import java.util.List;
@@ -30,8 +29,7 @@ private CacheUtils() {}
3029

3130
/**
3231
* @throws UncheckedExecutionException when {@code loader} throws an unchecked exception
33-
* @throws ExecutionError when {@code loader} throws an {@link Error}
34-
* @throws RuntimeException when{@code loader} throws a checked exception (which should not happen)
32+
* @throws RuntimeException when{@code loader} throws a checked exception (which should not happen) or an {@link Error}
3533
*/
3634
public static <K, V> V uncheckedCacheGet(Cache<K, V> cache, K key, Supplier<V> loader)
3735
{

0 commit comments

Comments
 (0)