summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Nelson <nelson24@att.com>2019-07-23 16:10:39 +0000
committerGerrit Code Review <gerrit@onap.org>2019-07-23 16:10:39 +0000
commit66500871fa65d6e1bfcfa3f9c0641c2bb0ea39b0 (patch)
tree160ef14fed6e4f8cc78d197755f4bb66f2f4c8fd /src
parentd0a5395c64cacb9028a709671181a1bf986569c6 (diff)
parent028500b6b38f8e2de080d7356f4782adee9e078e (diff)
Merge "Sonar Fix: AuthUtil.java"
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());
}