JS: Make CachedOperation private

This commit is contained in:
Asger Feldthaus
2020-09-22 14:27:17 +01:00
parent 433e3e7e4e
commit 5374b66029

View File

@@ -40,7 +40,7 @@ public class AsyncFetcher {
throw ex;
}
class CachedOperation<K, V> {
private class CachedOperation<K, V> {
private Map<K, CompletableFuture<V>> cache = new LinkedHashMap<>();
public synchronized CompletableFuture<V> get(K key, Supplier<V> builder) {