From 041240baab6082916e5da69ed190051b7aa60f12 Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Tue, 19 Mar 2019 13:45:15 -0400 Subject: Fix sonar issues xacml pdp Fixed some small sonar issues. Some of the others will be taken care of when we implement things. Issue-ID: POLICY-1602 Change-Id: I745962feaf00904c39b2e80e00bcc565f51dc8fd Signed-off-by: Pamela Dragosh --- .../policy/xacml/pdp/application/monitoring/MonitoringRequest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'applications/monitoring/src/main') diff --git a/applications/monitoring/src/main/java/org/onap/policy/xacml/pdp/application/monitoring/MonitoringRequest.java b/applications/monitoring/src/main/java/org/onap/policy/xacml/pdp/application/monitoring/MonitoringRequest.java index b2e5ff9a..f3bee71b 100644 --- a/applications/monitoring/src/main/java/org/onap/policy/xacml/pdp/application/monitoring/MonitoringRequest.java +++ b/applications/monitoring/src/main/java/org/onap/policy/xacml/pdp/application/monitoring/MonitoringRequest.java @@ -56,14 +56,14 @@ public class MonitoringRequest { Map resources = decisionRequest.getResource(); for (Entry entry : resources.entrySet()) { - if (entry.getKey().equals("policy-id")) { + if ("policy-id".contentEquals(entry.getKey())) { // // TODO handle lists of policies // request.resource = entry.getValue().toString(); continue; } - if (entry.getKey().equals("policy-type")) { + if ("policy-type".contentEquals(entry.getKey())) { // // TODO handle lists of policies // -- cgit 1.2.3-korg