Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix non-weak reference regression introduced with Guava upgrade #34

Merged
merged 1 commit into from Sep 16, 2016
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
@@ -49,7 +49,7 @@ public final T getForThread(Thread thread) {
public static class WeakReferenceThreadMap<T> implements ThreadValue<T> {
- protected final LoadingCache<Thread, T> loadingCache = CacheBuilder.newBuilder().build(new CacheLoader<Thread, T>() {
+ protected final LoadingCache<Thread, T> loadingCache = CacheBuilder.newBuilder().weakKeys().build(new CacheLoader<Thread, T>() {
@Override
public T load(Thread thread) throws Exception {
return initialValue();