Sonar-OrganizationFactory.java 82/96182/1
authoranushadasari <danush10@in.ibm.com>
Tue, 24 Sep 2019 16:00:15 +0000 (21:30 +0530)
committeranushadasari <danush10@in.ibm.com>
Tue, 24 Sep 2019 16:00:30 +0000 (21:30 +0530)
Remove the declaration of thrown exception 'org.onap.aaf.auth.org.OrganizationException', as it cannot be thrown from method's body

Issue-ID: AAF-985
Change-Id: I6c57e9e8ac55ebefe7179244fcc1aef14a1e10f7
Signed-off-by: anushadasari <danush10@in.ibm.com>
auth/auth-core/src/main/java/org/onap/aaf/auth/org/OrganizationFactory.java

index 4f2ba4f..2ada75d 100644 (file)
@@ -142,7 +142,7 @@ public class OrganizationFactory {
         return org;
     }
 
-    public static Organization get(AuthzTrans trans) throws OrganizationException {
+    public static Organization get(AuthzTrans trans){
         String domain = FQI.reverseDomain(trans.user());
         Organization org = orgs.get(domain);
         if (org==null) {