From a11231f0e86d79b25eceef2514653d7fd8a39195 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 16 Apr 2011 16:51:27 +0200 Subject: [PATCH] Formatting and whitespace fixes. --- .../pterodactylus/sone/freenet/plugin/ConnectorListener.java | 1 - src/main/java/net/pterodactylus/sone/web/LikePage.java | 2 +- src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java | 10 +++++----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/freenet/plugin/ConnectorListener.java b/src/main/java/net/pterodactylus/sone/freenet/plugin/ConnectorListener.java index 71710e4..3da08f3 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/plugin/ConnectorListener.java +++ b/src/main/java/net/pterodactylus/sone/freenet/plugin/ConnectorListener.java @@ -19,7 +19,6 @@ package net.pterodactylus.sone.freenet.plugin; import java.util.EventListener; - import freenet.support.SimpleFieldSet; import freenet.support.api.Bucket; diff --git a/src/main/java/net/pterodactylus/sone/web/LikePage.java b/src/main/java/net/pterodactylus/sone/web/LikePage.java index 73fdd3c..56f55ef 100644 --- a/src/main/java/net/pterodactylus/sone/web/LikePage.java +++ b/src/main/java/net/pterodactylus/sone/web/LikePage.java @@ -53,7 +53,7 @@ public class LikePage extends SoneTemplatePage { protected void processTemplate(Request request, TemplateContext templateContext) throws RedirectException { super.processTemplate(request, templateContext); if (request.getMethod() == Method.POST) { - String type=request.getHttpRequest().getPartAsStringFailsafe("type", 16); + String type = request.getHttpRequest().getPartAsStringFailsafe("type", 16); String id = request.getHttpRequest().getPartAsStringFailsafe(type, 36); String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 256); Sone currentSone = getCurrentSone(request.getToadletContext()); diff --git a/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java b/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java index e30c8f8..9eacaf8 100644 --- a/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java +++ b/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java @@ -26,8 +26,8 @@ import java.util.Map; import net.pterodactylus.sone.data.Sone; import net.pterodactylus.sone.main.SonePlugin; -import net.pterodactylus.sone.web.page.Page; import net.pterodactylus.sone.web.page.FreenetTemplatePage; +import net.pterodactylus.sone.web.page.Page; import net.pterodactylus.util.collection.ListBuilder; import net.pterodactylus.util.collection.MapBuilder; import net.pterodactylus.util.template.Template; @@ -53,8 +53,8 @@ public class SoneTemplatePage extends FreenetTemplatePage { private final boolean requireLogin; /** - * Creates a new template page for Sone that does not require the user - * to be logged in. + * Creates a new template page for Sone that does not require the user to be + * logged in. * * @param path * The path of the page @@ -68,8 +68,8 @@ public class SoneTemplatePage extends FreenetTemplatePage { } /** - * Creates a new template page for Sone that does not require the user - * to be logged in. + * Creates a new template page for Sone that does not require the user to be + * logged in. * * @param path * The path of the page -- 2.7.4