From: Roland Häder Date: Tue, 10 Jul 2018 23:24:09 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=36c094e0f843c692e497cb382c6267dd34eb2023;p=jcoreee.git Continued: - use more final where possible Signed-off-by: Roland Häder --- diff --git a/lib/jcore-logger-lib.jar b/lib/jcore-logger-lib.jar index f6e2712..85be33f 100644 Binary files a/lib/jcore-logger-lib.jar and b/lib/jcore-logger-lib.jar differ diff --git a/src/org/mxchange/jcoreee/utils/FacesUtils.java b/src/org/mxchange/jcoreee/utils/FacesUtils.java index 35e0b28..71d9d1e 100644 --- a/src/org/mxchange/jcoreee/utils/FacesUtils.java +++ b/src/org/mxchange/jcoreee/utils/FacesUtils.java @@ -40,14 +40,14 @@ public class FacesUtils implements Serializable { */ public static String generateBaseUrl () { // Get external context - ExternalContext context = FacesContext.getCurrentInstance().getExternalContext(); + final ExternalContext context = FacesContext.getCurrentInstance().getExternalContext(); // Get request scheme and such ... - String scheme = context.getRequestScheme(); - String serverName = context.getRequestServerName(); + final String scheme = context.getRequestScheme(); + final String serverName = context.getRequestServerName(); String contextPath = context.getRequestContextPath(); String servletPath = context.getRequestServletPath(); - int port = context.getRequestServerPort(); + final int port = context.getRequestServerPort(); // Is the path null? if (null == scheme) { @@ -69,7 +69,7 @@ public class FacesUtils implements Serializable { } // Init variable - String baseUrl; + final String baseUrl; // Unusual port found? if ((port != 80) && (port != 443)) {