From fd4e3c59035c9321a63507e2100c66532c8f1938 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 1 Nov 2010 21:32:55 +0100 Subject: [PATCH] Use the identity manager. --- .../java/net/pterodactylus/sone/template/IdentityAccessor.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/template/IdentityAccessor.java b/src/main/java/net/pterodactylus/sone/template/IdentityAccessor.java index 4ea956d..84989b3 100644 --- a/src/main/java/net/pterodactylus/sone/template/IdentityAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/IdentityAccessor.java @@ -17,13 +17,11 @@ package net.pterodactylus.sone.template; -import java.util.Collections; import java.util.Set; import net.pterodactylus.sone.core.Core; import net.pterodactylus.sone.freenet.wot.Identity; import net.pterodactylus.sone.freenet.wot.OwnIdentity; -import net.pterodactylus.sone.freenet.wot.PluginException; import net.pterodactylus.util.template.Accessor; import net.pterodactylus.util.template.DataProvider; import net.pterodactylus.util.template.ReflectionAccessor; @@ -59,11 +57,7 @@ public class IdentityAccessor extends ReflectionAccessor { int minLength = -1; boolean found = false; Set ownIdentities = null; - try { - ownIdentities = core.getWebOfTrustConnector().loadAllOwnIdentities(); - } catch (PluginException e) { - ownIdentities = Collections.emptySet(); - } + ownIdentities = core.getIdentityManager().getAllOwnIdentities(); do { boolean unique = true; String abbreviatedWantedNickname = getAbbreviatedNickname(identity, ++minLength); -- 2.7.4