From 0ce69c5d583879991cb10ae4f59a15026e108cee Mon Sep 17 00:00:00 2001 From: dinesha Date: Tue, 13 Aug 2019 17:17:03 +0530 Subject: 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 --- .../auth-cass/src/main/java/org/onap/aaf/auth/dao/cass/ApprovalDAO.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { } 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); -- cgit 1.2.3-korg