Code Review
/
policy
/
xacml-pdp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix sonar issues xacml pdp
[policy/xacml-pdp.git]
/
applications
/
monitoring
/
src
/
main
/
java
/
org
/
onap
/
policy
/
xacml
/
pdp
/
application
/
monitoring
/
MonitoringRequest.java
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
b2e5ff9
..
f3bee71
100644
(file)
--- 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()) {
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;
}
//
// 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
//
//
// TODO handle lists of policies
//