diff options
author | Jonathan Gathman <jonathan.gathman@att.com> | 2019-09-19 15:39:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-09-19 15:39:44 +0000 |
commit | d06380ed44ae90707185dce2cd2be3aef3c89104 (patch) | |
tree | 85ee3d71183a96abe995cf8e7e5f9e0f44b7e3ed /auth/auth-cass/src/main/java/org | |
parent | d8ea11a483d65947152a411f10de44bc4c467ba2 (diff) | |
parent | 57eeb2e057408b8c110e12d54163bb3a1532457e (diff) |
Merge "CachedCredDAO .java -add the @Override annotation above method signature"
Diffstat (limited to 'auth/auth-cass/src/main/java/org')
-rw-r--r-- | auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cached/CachedCredDAO.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cached/CachedCredDAO.java b/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cached/CachedCredDAO.java index 6bdc22bc..a8a3796a 100644 --- a/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cached/CachedCredDAO.java +++ b/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cached/CachedCredDAO.java @@ -3,6 +3,7 @@ * org.onap.aaf * =========================================================================== * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved. + * 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. @@ -51,6 +52,7 @@ public class CachedCredDAO extends CachedDAO<AuthzTrans, CredDAO, CredDAO.Data> @Override public Result<List<Data>> read(AuthzTrans trans, final String id) { DAOGetter getter = new DAOGetter(trans,dao()) { + @Override public Result<List<CredDAO.Data>> call() { return dao().readID(trans, id); } @@ -68,6 +70,7 @@ public class CachedCredDAO extends CachedDAO<AuthzTrans, CredDAO, CredDAO.Data> @Override public Result<List<Data>> read(AuthzTrans trans, final String id) { DAOGetter getter = new DAOGetter(trans,dao()) { + @Override public Result<List<CredDAO.Data>> call() { return dao().readIDBAth(trans, id); } @@ -105,6 +108,7 @@ public class CachedCredDAO extends CachedDAO<AuthzTrans, CredDAO, CredDAO.Data> return readIDBath.read(trans,id); } + @FunctionalInterface private interface ReadID { public Result<List<CredDAO.Data>> read(final AuthzTrans trans, final String id); } |