summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk
diff options
context:
space:
mode:
authorburdziak <olaf.burdziakowski@nokia.com>2019-07-08 16:18:09 +0200
committerburdziak <olaf.burdziakowski@nokia.com>2019-07-08 16:18:09 +0200
commit217b8d6008f2c747483a2329e0a686349dd27fd6 (patch)
tree0fbbeb092cec2a003fdc045647e6cf266c7b4eaa /ecomp-sdk
parent179ff1eb0c1ac9eef4d152c47df5cb12a4584c0f (diff)
Fix sonar issues in SecurityXssValidator
Change-Id: Ib610e5c905ef616434191e432932c0e63d5bd012 Issue-ID: PORTAL-523 Signed-off-by: burdziak <olaf.burdziakowski@nokia.com>
Diffstat (limited to 'ecomp-sdk')
-rw-r--r--ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/util/SecurityXssValidator.java4
1 files changed, 2 insertions, 2 deletions
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