Rename method to match its purpose.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 15 Sep 2011 14:41:20 +0000 (16:41 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 15 Sep 2011 14:41:20 +0000 (16:41 +0200)
src/main/java/net/pterodactylus/wotns/ui/web/BasicPage.java
src/main/java/net/pterodactylus/wotns/ui/web/EnableIdentityPage.java

index fa8c06f..25efbe3 100644 (file)
@@ -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);
index 125d346..8518de7 100644 (file)
@@ -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;