From 217b8d6008f2c747483a2329e0a686349dd27fd6 Mon Sep 17 00:00:00 2001 From: burdziak Date: Mon, 8 Jul 2019 16:18:09 +0200 Subject: Fix sonar issues in SecurityXssValidator Change-Id: Ib610e5c905ef616434191e432932c0e63d5bd012 Issue-ID: PORTAL-523 Signed-off-by: burdziak --- .../src/main/java/org/onap/portalapp/util/SecurityXssValidator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecomp-sdk/epsdk-app-common/src/main/java') diff --git a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/util/SecurityXssValidator.java b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/util/SecurityXssValidator.java index ef53d16e..69807a1c 100644 --- a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/util/SecurityXssValidator.java +++ b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/util/SecurityXssValidator.java @@ -55,7 +55,7 @@ import org.owasp.esapi.codecs.OracleCodec; public class SecurityXssValidator { - private EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(SecurityXssValidator.class); + private static final EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(SecurityXssValidator.class); private static final String MYSQL_DB = "mysql"; private static final String ORACLE_DB = "oracle"; @@ -172,7 +172,7 @@ public class SecurityXssValidator { return flag; } - public Codec getCodec() { + public static Codec getCodec() { try { if (null == instance) { if (StringUtils -- cgit 1.2.3-korg