From: David ‘Bombe’ Roden Date: Mon, 3 Jan 2011 06:22:11 +0000 (+0100) Subject: Use writable cache for trust values. X-Git-Tag: 0.4^2~8^2~21 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e54f27d746f4c78966f679fef02319ca2e5f9fa3;p=Sone.git Use writable cache for trust values. --- 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")