From 35cd2b18d39a5610094677973bbfca8300b4714b Mon Sep 17 00:00:00 2001 From: manisha07 Date: Mon, 4 Nov 2019 16:08:44 +0530 Subject: Add the "@Override" annotation above this method signature - SonarFix Issue-ID: AAF-1031 Change-Id: I132e857ec2137fab622826f0af1ecb004ce90c60 Signed-off-by: manisha07 --- .../main/java/org/onap/aaf/auth/dao/cached/CachedPermDAO.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'auth') diff --git a/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cached/CachedPermDAO.java b/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cached/CachedPermDAO.java index 7ea7dd75..28b8c4b4 100644 --- a/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cached/CachedPermDAO.java +++ b/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cached/CachedPermDAO.java @@ -40,6 +40,7 @@ public class CachedPermDAO extends CachedDAO { public Result> readNS(AuthzTrans trans, final String ns) { DAOGetter getter = new DAOGetter(trans,dao()) { + @Override public Result> call() { return dao.readNS(trans, ns); } @@ -51,14 +52,7 @@ public class CachedPermDAO extends CachedDAO { } else { } -// if (getter.result==null) { -// if (lurd==null) { - return Result.err(Status.ERR_PermissionNotFound,"No Permission found - " + lurd.details); -// } else { -// return Result.ok(lurd); -// } -// } -// return getter.result; + return Result.err(Status.ERR_PermissionNotFound,"No Permission found - " + lurd.details); } public Result> readChildren(AuthzTrans trans, final String ns, final String type) { @@ -74,6 +68,7 @@ public class CachedPermDAO extends CachedDAO { */ public Result> readByType(AuthzTrans trans, final String ns, final String type) { DAOGetter getter = new DAOGetter(trans,dao()) { + @Override public Result> call() { return dao.readByType(trans, ns, type); } -- cgit 1.2.3-korg