diff options
author | dinesha <dineshgs@in.ibm.com> | 2019-08-13 17:17:03 +0530 |
---|---|---|
committer | dinesha <dineshgs@in.ibm.com> | 2019-08-13 17:17:30 +0530 |
commit | 0ce69c5d583879991cb10ae4f59a15026e108cee (patch) | |
tree | 65c6684d871b2e27e408cf994f5bad1172d2d786 /auth/auth-cass/src/main | |
parent | ca0be7643ac60cac5cc9e967a3c39a3bc9a2ccb3 (diff) |
Sonar Fix - Use already-defined constant 'DENIED' instead of duplicating its value here
Fixed sonar issues across the file
Issue-ID: AAF-909
Change-Id: I332a6587cab39edb7986f5db2545db5ce2bb08dd
Signed-off-by: dinesha <dineshgs@in.ibm.com>
Diffstat (limited to 'auth/auth-cass/src/main')
-rw-r--r-- | auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cass/ApprovalDAO.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cass/ApprovalDAO.java b/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cass/ApprovalDAO.java index 54f57449..7e90bbb9 100644 --- a/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cass/ApprovalDAO.java +++ b/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cass/ApprovalDAO.java @@ -212,7 +212,7 @@ public class ApprovalDAO extends CassDAOImpl<AuthzTrans,ApprovalDAO.Data> { } ApprovalLoader.deflt.load(data, rd.value.one()); } - if ("approved".equals(data.status) || "denied".equals(data.status)) { + if (APPROVED.equals(data.status) || DENIED.equals(data.status)) { StringBuilder sb = new StringBuilder("BEGIN BATCH\n"); sb.append("INSERT INTO "); sb.append(TABLELOG); |