From 36c094e0f843c692e497cb382c6267dd34eb2023 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 11 Jul 2018 01:24:09 +0200 Subject: [PATCH] Continued: - use more final where possible MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- lib/jcore-logger-lib.jar | Bin 2537 -> 2538 bytes .../mxchange/jcoreee/utils/FacesUtils.java | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/jcore-logger-lib.jar b/lib/jcore-logger-lib.jar index f6e2712e830737b6a72d36a2ae92cfba525c8916..85be33f2b2c3f37a3a0600d0cd2d8df52ea4954f 100644 GIT binary patch delta 498 zcmaDU{7RTFz?+$ci-CcIfx&3odY_4W>Vk$qTI8nbvr+~I1`rmRY``u)G1i#L&|u<3 zQ6W=9U5ipfAem%nqzfh|?oeg{YrZcBrYAEpszVq$jHVDqDx)=ov4qhP!g$H(0cLDA zWzuJYurgTkAgsx^*vxrRoH1FB-LxKL2hcrmzyfCpFuZlV1mxuxrRxWHGct)VBfJDx z1Z42SIUpThpgM9Zk~0$X(o^wjl}2a=>6M>+pIr;$6J8D}#t0x+Zt?_1j>&!;ToB#AwHH=e=NrP$f19sWT2~09N=-T|H^H15)1HVWdq4`0U;+d1H)-B4**hzbGrZl delta 499 zcmaDQ{8E@Nz?+$ci-CcIfgyB}Q2c{=8F{(otx{Rg} zMjE3vgt3&-5yE)I=mBPIHe=Ffg0M1K@|ajau9|$C&72p-S(D}2P0c_eK=;7`3!Eju z@YeAnke6SSt{>pd$RxrH@ghja)FtSbd<=}w`#{z|?L52A=QEi7C1!U;KIUsXyLv`>>zQD{r`5(+M zK29knb*9M=*=2#2faJI)$8riOfPCUFoqvL#iGcxxo#AFNFf3_|Vu5Q|z#=pG3a0?u IDK?M_0Mes$S^xk5 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)) { -- 2.39.5