Merge "Fix small sonar issues in URFutureApproveExec"
authorJonathan Gathman <jonathan.gathman@att.com>
Mon, 21 May 2018 13:32:44 +0000 (13:32 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 21 May 2018 13:32:44 +0000 (13:32 +0000)
auth/auth-batch/src/main/java/org/onap/aaf/auth/actions/URFutureApproveExec.java

index 6cf2c53..635efef 100644 (file)
@@ -56,8 +56,8 @@ public class URFutureApproveExec extends ActionDAO<List<Approval>, OP_STATUS, Fu
                        return Result.err(Result.ERR_ActionNotCompleted,"Not Executed");
                } else {
                        // Save on Lookups
-                       final List<ApprovalDAO.Data> apprs = new ArrayList<ApprovalDAO.Data>();
-                       final List<UserRoleDAO.Data> urs = new ArrayList<UserRoleDAO.Data>();
+                       final List<ApprovalDAO.Data> apprs = new ArrayList<>();
+                       final List<UserRoleDAO.Data> urs = new ArrayList<>();
                        for(Approval a : app) {
                                apprs.add(a.add);
                                UserRole ur = UserRole.get(a.add.user, future.role);