From cec099ef08feaff5332b81885ad989dbcb0fdfba Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 6 Oct 2017 22:48:42 +0200 Subject: [PATCH] =?utf8?q?Make=20some=20methods=20final=20that=20shouldn?= =?utf8?q?=E2=80=99t=20need=20to=20be=20overridden?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java | 2 +- src/main/kotlin/net/pterodactylus/sone/web/pages/SoneTemplatePage.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java b/src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java index 209019b..9cfd026 100644 --- a/src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java +++ b/src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java @@ -119,7 +119,7 @@ public class FreenetTemplatePage implements FreenetPage, LinkEnabledCallback { * {@inheritDoc} */ @Override - public Response handleRequest(FreenetRequest request, Response response) throws IOException { + public final Response handleRequest(FreenetRequest request, Response response) throws IOException { String redirectTarget = getRedirectTarget(request); if (redirectTarget != null) { return new RedirectResponse(redirectTarget); diff --git a/src/main/kotlin/net/pterodactylus/sone/web/pages/SoneTemplatePage.kt b/src/main/kotlin/net/pterodactylus/sone/web/pages/SoneTemplatePage.kt index 4d0fa3f..6f5de15 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/pages/SoneTemplatePage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/pages/SoneTemplatePage.kt @@ -58,7 +58,7 @@ open class SoneTemplatePage( "href" to "http://${request.httpRequest.getHeader("host")}/Sone/OpenSearch.xml" )) - override public fun processTemplate(freenetRequest: FreenetRequest, templateContext: TemplateContext) { + final override public fun processTemplate(freenetRequest: FreenetRequest, templateContext: TemplateContext) { super.processTemplate(freenetRequest, templateContext) templateContext["preferences"] = core.preferences templateContext["currentSone"] = getCurrentSone(freenetRequest.toadletContext) -- 2.7.4