# HG changeset patch # User Mike Becker # Date 1609947669 -3600 # Node ID 53f0e2685ad56e659212d809b40d27f3ad620cd7 # Parent 502a10e24b858fabf3d9215a07fd4002aa9674d0 single-use constant field can be inlined diff -r 502a10e24b85 -r 53f0e2685ad5 src/main/java/de/uapcore/lightpit/AbstractServlet.java --- a/src/main/java/de/uapcore/lightpit/AbstractServlet.java Wed Jan 06 16:20:32 2021 +0100 +++ b/src/main/java/de/uapcore/lightpit/AbstractServlet.java Wed Jan 06 16:41:09 2021 +0100 @@ -54,8 +54,6 @@ private static final Logger LOG = LoggerFactory.getLogger(AbstractServlet.class); - private static final String SITE_JSP = jspPath("site"); - /** * Invocation mapping gathered from the {@link RequestMapping} annotations. *

@@ -361,7 +359,7 @@ } protected void renderSite(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - req.getRequestDispatcher(SITE_JSP).forward(req, resp); + req.getRequestDispatcher(jspPath("site")).forward(req, resp); } protected Optional availableLanguages() {