From c91b63bb275b8d541309d7e1e8faa4f0bc752630 Mon Sep 17 00:00:00 2001 From: Maciej Wejs Date: Mon, 16 Jul 2018 16:42:20 +0200 Subject: Sonar fixes related to exceptions Fixes in aaf-cadi-aaf module Change-Id: Ie5148f3526d782bd45e0ae9c0423ab8f84187a50 Issue-ID: AAF-396 Signed-off-by: Maciej Wejs --- .../src/main/java/org/onap/aaf/auth/server/AbsService.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'auth/auth-core/src') diff --git a/auth/auth-core/src/main/java/org/onap/aaf/auth/server/AbsService.java b/auth/auth-core/src/main/java/org/onap/aaf/auth/server/AbsService.java index 0c28c7ca..bb6f1986 100644 --- a/auth/auth-core/src/main/java/org/onap/aaf/auth/server/AbsService.java +++ b/auth/auth-core/src/main/java/org/onap/aaf/auth/server/AbsService.java @@ -136,16 +136,13 @@ public abstract class AbsService exte * @return * @throws LocatorException */ - protected synchronized AAFConHttp _newAAFConHttp() throws CadiException, LocatorException { - try { + protected synchronized AAFConHttp _newAAFConHttp() throws CadiException, LocatorException { if(aafCon==null) { aafCon = new AAFConHttp(access); - } + } return aafCon; - } catch (APIException e) { - throw new CadiException(e); + } - } // This is a method, so we can overload for AAFAPI public String aaf_url() { -- cgit 1.2.3-korg