From da033b7cd9e2afc534467eb0645b38e4abce7af2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 15 Sep 2011 16:41:20 +0200 Subject: [PATCH] Rename method to match its purpose. --- src/main/java/net/pterodactylus/wotns/ui/web/BasicPage.java | 2 +- src/main/java/net/pterodactylus/wotns/ui/web/EnableIdentityPage.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.7.4