]> git.mxchange.org Git - jcoreee.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 10 Jul 2018 23:24:09 +0000 (01:24 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 10 Jul 2018 23:24:09 +0000 (01:24 +0200)
- use more final where possible

Signed-off-by: Roland Häder <roland@mxchange.org>
lib/jcore-logger-lib.jar
src/org/mxchange/jcoreee/utils/FacesUtils.java

index f6e2712e830737b6a72d36a2ae92cfba525c8916..85be33f2b2c3f37a3a0600d0cd2d8df52ea4954f 100644 (file)
Binary files a/lib/jcore-logger-lib.jar and b/lib/jcore-logger-lib.jar differ
index 35e0b28e42fcbe294824bb5adbe828b08138d3a6..71d9d1efff4714a7ef7bf087de05a1679abd5d79 100644 (file)
@@ -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)) {