diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2019-03-19 13:45:15 -0400 |
---|---|---|
committer | Pamela Dragosh <pdragosh@research.att.com> | 2019-03-19 13:45:26 -0400 |
commit | 041240baab6082916e5da69ed190051b7aa60f12 (patch) | |
tree | d890fb0b6a1882ee23933da27286baabd1f39ab9 /applications/monitoring/src/main | |
parent | 59c38b6b3dfbd43c876f85ffb1e4b484951ced44 (diff) |
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 <pdragosh@research.att.com>
Diffstat (limited to 'applications/monitoring/src/main')
-rw-r--r-- | applications/monitoring/src/main/java/org/onap/policy/xacml/pdp/application/monitoring/MonitoringRequest.java | 4 |
1 files changed, 2 insertions, 2 deletions
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<String, Object> resources = decisionRequest.getResource(); for (Entry<String, Object> 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 // |