Make final mappingFunction variable. (#876)

This commit is contained in:
Arturo Bernal 2022-05-02 15:31:21 +02:00 committed by GitHub
parent e6dadcb49a
commit b58fb5bdc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ import java.util.function.Function;
public class Memoizer<I, O> implements Computable<I, O> {
private final ConcurrentMap<I, Future<O>> cache = new ConcurrentHashMap<>();
private Function<? super I, ? extends Future<O>> mappingFunction;
private final Function<? super I, ? extends Future<O>> mappingFunction;
private final boolean recalculate;
/**