summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-fw/src
diff options
context:
space:
mode:
authorArindam Mondal <arind.mondal@samsung.com>2019-09-16 16:47:30 +0900
committerarindamm <arind.mondal@samsung.com>2019-09-16 16:48:56 +0900
commitf270ebe165d6fac318f17a7b3d3bbcdb5ce1aac6 (patch)
treefa8a3a316ed204253c9f4d07203cec569fa8a529 /ecomp-sdk/epsdk-fw/src
parent6529859fc521c3f82d399aaa90cee6521d5b9401 (diff)
General Sonar Fixes
Issue-ID: PORTAL-740 Change-Id: I050c3ffa64ae95eadca3a99ec149736fa9dbde67 Signed-off-by: arindamm <arind.mondal@samsung.com>
Diffstat (limited to 'ecomp-sdk/epsdk-fw/src')
-rw-r--r--ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/crossapi/CadiAuthFilter.java4
-rw-r--r--ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/AuthUtil.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/crossapi/CadiAuthFilter.java b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/crossapi/CadiAuthFilter.java
index 2336a514..a5a2b2ba 100644
--- a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/crossapi/CadiAuthFilter.java
+++ b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/crossapi/CadiAuthFilter.java
@@ -79,8 +79,8 @@ public class CadiAuthFilter extends CadiFilter {
throw new ServletException("Filter init parameter " + INCLUDE_URL_ENDPOINTS + " is null or empty");
if (exclude_url_endpoints == null || exclude_url_endpoints.isEmpty())
throw new ServletException("Filter init parameter " + EXCLUDE_URL_ENDPOINTS + " is null or empty");
- includeUrlEndPointList = new ArrayList<String>(Arrays.asList(include_url_endpoints.split(",")));
- excludeUrlEndPointList = new ArrayList<String>(Arrays.asList(exclude_url_endpoints.split(",")));
+ includeUrlEndPointList = new ArrayList<>(Arrays.asList(include_url_endpoints.split(",")));
+ excludeUrlEndPointList = new ArrayList<>(Arrays.asList(exclude_url_endpoints.split(",")));
}
@Override
diff --git a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/AuthUtil.java b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/AuthUtil.java
index ac310805..2e47768a 100644
--- a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/AuthUtil.java
+++ b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/AuthUtil.java
@@ -204,7 +204,7 @@ public class AuthUtil {
logger.debug("Request is Authorized");
}
} catch (ClassCastException e) {
- logger.warn("Given request is not CADI request: " + e.toString());
+ logger.warn("Given request is not CADI request: ", e);
if (appCredentials.isEmpty()) {
logger.debug("app credentails are empty");