From e54f27d746f4c78966f679fef02319ca2e5f9fa3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 3 Jan 2011 07:22:11 +0100 Subject: [PATCH] Use writable cache for trust values. --- src/main/java/net/pterodactylus/sone/freenet/wot/DefaultIdentity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultIdentity.java b/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultIdentity.java index d262d57..00caf48 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultIdentity.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultIdentity.java @@ -24,12 +24,12 @@ import java.util.Map; import java.util.Set; import net.pterodactylus.sone.freenet.plugin.PluginException; -import net.pterodactylus.util.cache.Cache; import net.pterodactylus.util.cache.CacheException; import net.pterodactylus.util.cache.CacheItem; import net.pterodactylus.util.cache.DefaultCacheItem; import net.pterodactylus.util.cache.MemoryCache; import net.pterodactylus.util.cache.ValueRetriever; +import net.pterodactylus.util.cache.WritableCache; /** * A Web of Trust identity. @@ -57,7 +57,7 @@ public class DefaultIdentity implements Identity { private final Map properties = Collections.synchronizedMap(new HashMap()); /** Cached trust. */ - private final Cache trustCache = new MemoryCache(new ValueRetriever() { + private final WritableCache trustCache = new MemoryCache(new ValueRetriever() { @Override @SuppressWarnings("synthetic-access") -- 2.7.4