Wed, 06 Jan 2021 16:41:09 +0100
single-use constant field can be inlined
src/main/java/de/uapcore/lightpit/AbstractServlet.java | file | annotate | diff | comparison | revisions |
--- 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. * <p> @@ -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<String[]> availableLanguages() {