aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-07-19 14:51:11 +0530
committerArundathi Patil <arundpil@in.ibm.com>2019-07-19 14:51:17 +0530
commit028500b6b38f8e2de080d7356f4782adee9e078e (patch)
treea59c9a1581423c60dcafc43a19b390dc8362e7d4 /src
parentb360bab7259e7bdba6b1169b56243bda1127bbf0 (diff)
Sonar Fix: AuthUtil.java
Fixed sonar issues across this file Issue-ID: MUSIC-460 Change-Id: Ib421c3980085a3114c4f2d3f102a391e9c8f2155 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/onap/music/authentication/AuthUtil.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/org/onap/music/authentication/AuthUtil.java b/src/main/java/org/onap/music/authentication/AuthUtil.java
index 223fa74e..ee3b77a4 100644
--- a/src/main/java/org/onap/music/authentication/AuthUtil.java
+++ b/src/main/java/org/onap/music/authentication/AuthUtil.java
@@ -3,6 +3,8 @@
* org.onap.music
* ===================================================================
* Copyright (c) 2017 AT&T Intellectual Property
+ *
+ * Modifications Copyright (C) 2019 IBM.
* ===================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -91,7 +93,7 @@ public class AuthUtil {
List<AAFPermission> allPermissionsList) {
List<AAFPermission> list = new ArrayList<>();
for (Iterator<AAFPermission> iterator = allPermissionsList.iterator(); iterator.hasNext();) {
- AAFPermission aafPermission = (AAFPermission) iterator.next();
+ AAFPermission aafPermission = iterator.next();
if(aafPermission.getType().indexOf(nameSpace) == 0) {
list.add(aafPermission);
}
@@ -166,7 +168,7 @@ public class AuthUtil {
"AuthUtil requestUri :::" + requestUri);
for (Iterator<AAFPermission> iterator = aafPermsFinalList.iterator(); iterator.hasNext();) {
- AAFPermission aafPermission = (AAFPermission) iterator.next();
+ AAFPermission aafPermission = iterator.next();
if(!isauthorized) {
isauthorized = isMatchPattern(aafPermission, requestUri, httpRequest.getMethod());
}