From d1afbb8d807ea244920f37fdda4a9461c64d8773 Mon Sep 17 00:00:00 2001 From: Thugutla sailakshmi Date: Thu, 31 Oct 2019 16:57:11 +0530 Subject: DirectAAFLur.java-sonar fix Issue-ID: AAF-876 Change-Id: I9c5417dfd72cac871ed79e99230a503a7fc4b693 Signed-off-by: Thugutla sailakshmi --- .../src/main/java/org/onap/aaf/auth/direct/DirectAAFLur.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/auth/auth-cass/src/main/java/org/onap/aaf/auth/direct/DirectAAFLur.java b/auth/auth-cass/src/main/java/org/onap/aaf/auth/direct/DirectAAFLur.java index 2ccbd236..b25e2054 100644 --- a/auth/auth-cass/src/main/java/org/onap/aaf/auth/direct/DirectAAFLur.java +++ b/auth/auth-cass/src/main/java/org/onap/aaf/auth/direct/DirectAAFLur.java @@ -47,8 +47,7 @@ public class DirectAAFLur implements Lur { public DirectAAFLur(AuthzEnv env, Question question/*, TokenMgr tm*/) { this.env = env; - this.question = question; -// oauth = new OAuth2Lur(null); + this.question = question } @Override @@ -148,7 +147,9 @@ public class DirectAAFLur implements Lur { return true; } else{ String[] lp = p.getKey().split("\\|"); - if (lp.length<3)return false; + if (lp.length<3) { + return false; + } if (data.fullType().equals(lp[0])) if (data.instance!=null && (data.instance.equals(lp[1]) || "*".equals(data.instance))) if (data.action!=null && (data.action.equals(lp[2]) || "*".equals(data.action))) -- cgit 1.2.3-korg