From: David ‘Bombe’ Roden Date: Thu, 15 Sep 2011 14:41:20 +0000 (+0200) Subject: Rename method to match its purpose. X-Git-Tag: 0.0.1~6 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=da033b7cd9e2afc534467eb0645b38e4abce7af2;p=WoTNS.git Rename method to match its purpose. --- diff --git a/src/main/java/net/pterodactylus/wotns/ui/web/BasicPage.java b/src/main/java/net/pterodactylus/wotns/ui/web/BasicPage.java index fa8c06f..25efbe3 100644 --- a/src/main/java/net/pterodactylus/wotns/ui/web/BasicPage.java +++ b/src/main/java/net/pterodactylus/wotns/ui/web/BasicPage.java @@ -46,7 +46,7 @@ public class BasicPage extends FreenetTemplatePage { // PROTECTED METHODS // - protected OwnIdentity getIdentity(FreenetRequest request) { + protected OwnIdentity getOwnIdentity(FreenetRequest request) { if (request.getMethod() == Method.POST) { String ownIdentityId = request.getHttpRequest().getPartAsStringFailsafe("ownIdentity", 43); return identityManager.getOwnIdentity(ownIdentityId); diff --git a/src/main/java/net/pterodactylus/wotns/ui/web/EnableIdentityPage.java b/src/main/java/net/pterodactylus/wotns/ui/web/EnableIdentityPage.java index 125d346..8518de7 100644 --- a/src/main/java/net/pterodactylus/wotns/ui/web/EnableIdentityPage.java +++ b/src/main/java/net/pterodactylus/wotns/ui/web/EnableIdentityPage.java @@ -47,7 +47,7 @@ public class EnableIdentityPage extends BasicPage { protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException { super.processTemplate(request, templateContext); if (request.getMethod() == Method.POST) { - OwnIdentity ownIdentity = getIdentity(request); + OwnIdentity ownIdentity = getOwnIdentity(request); if (ownIdentity == null) { /* TODO - show error. */ return;