summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Gathman <jonathan.gathman@att.com>2019-08-22 13:21:00 +0000
committerGerrit Code Review <gerrit@onap.org>2019-08-22 13:21:00 +0000
commit5ba5aa22752660f6cc753ae88a38fb984492d924 (patch)
tree59d1d4023ed8b4db63ab4313d1f4b1543c05d8a0
parent4c231d800a0cba774f6bbcaa6ddb40a572d0fe4d (diff)
parent0ce69c5d583879991cb10ae4f59a15026e108cee (diff)
Merge "Sonar Fix - Use already-defined constant 'DENIED' instead of duplicating its value here"
-rw-r--r--auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cass/ApprovalDAO.java2
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);