From 9be110e698b59932cb5818cb473653c367b8cad0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 11 Jun 2009 07:24:33 +0200 Subject: [PATCH 1/1] Make OwnIdentity extend Identity again. --- .../pterodactylus/fcp/plugin/WebOfTrustPlugin.java | 42 ++-------------------- 1 file changed, 2 insertions(+), 40 deletions(-) diff --git a/src/net/pterodactylus/fcp/plugin/WebOfTrustPlugin.java b/src/net/pterodactylus/fcp/plugin/WebOfTrustPlugin.java index bb6d682..1949527 100644 --- a/src/net/pterodactylus/fcp/plugin/WebOfTrustPlugin.java +++ b/src/net/pterodactylus/fcp/plugin/WebOfTrustPlugin.java @@ -325,16 +325,7 @@ public class WebOfTrustPlugin { * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ - public static class OwnIdentity { - - /** The identity’s identifier. */ - private final String identifier; - - /** The identity’s nickname. */ - private final String nickname; - - /** The identity’s request URI. */ - private final String requestUri; + public static class OwnIdentity extends Identity { /** The identity’s insert URI. */ private final String insertUri; @@ -352,40 +343,11 @@ public class WebOfTrustPlugin { * The insert URI of the identity */ public OwnIdentity(String identifier, String nickname, String requestUri, String insertUri) { - this.identifier = identifier; - this.nickname = nickname; - this.requestUri = requestUri; + super(identifier, nickname, requestUri); this.insertUri = insertUri; } /** - * Returns the identifier of this identity. - * - * @return This identity’s identifier - */ - public String getIdentifier() { - return identifier; - } - - /** - * Returns the nickname of this identity. - * - * @return This identity’s nickname - */ - public String getNickname() { - return nickname; - } - - /** - * Returns the request URI of this identity. - * - * @return This identity’s request URI - */ - public String getRequestUri() { - return requestUri; - } - - /** * Returns the insert URI of this identity. * * @return This identity’s insert URI -- 2.7.4