single-use constant field can be inlined

Wed, 06 Jan 2021 16:41:09 +0100

author
Mike Becker <universe@uap-core.de>
date
Wed, 06 Jan 2021 16:41:09 +0100
changeset 182
53f0e2685ad5
parent 181
502a10e24b85
child 183
61669abf277f

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() {

mercurial