From: David ‘Bombe’ Roden Date: Fri, 29 Oct 2010 23:30:08 +0000 (+0200) Subject: Use cached values. X-Git-Tag: 0.2-RC1~88 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=40058abe80bf8a55b5c5eb6594b87d98bef8d0ce Use cached values. --- diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java b/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java index 74b5f6a..ecb8f25 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java @@ -67,7 +67,7 @@ public class OwnIdentity extends Identity { * The context to add */ public void addContext(String context) { - if (contexts.add(context)) { + if (getContexts().add(context)) { /* TODO - add. */ } } @@ -79,7 +79,7 @@ public class OwnIdentity extends Identity { * The context to remove */ public void removeContext(String context) { - if (contexts.remove(context)) { + if (getContexts().remove(context)) { /* TODO - remove */ } }