aboutsummaryrefslogtreecommitdiffstats
path: root/ONAP-PAP-REST/src/main/java/org/onap
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2017-09-11 16:15:18 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-11 16:15:18 +0000
commit8f7700fa98a92cb8bf8bc4fb7af20c58080821ff (patch)
tree24872ff0fdca0f62743e14871376a8306904443b /ONAP-PAP-REST/src/main/java/org/onap
parent1bfd18f999cda39a7b27bef8972864aafe59aecb (diff)
parentbb5f940c520c7dc8111bce704a19066b2f51301a (diff)
Merge "Sonar Blocker"
Diffstat (limited to 'ONAP-PAP-REST/src/main/java/org/onap')
-rw-r--r--ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/components/ActionPolicy.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/components/ActionPolicy.java b/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/components/ActionPolicy.java
index 1efe82794..5ad774d20 100644
--- a/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/components/ActionPolicy.java
+++ b/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/components/ActionPolicy.java
@@ -347,8 +347,7 @@ public class ActionPolicy extends Policy {
}
String headerVal = policyAdapter.getActionDictHeader();
- if(headerVal != null){
- if(headerVal != null && !headerVal.equals("")){
+ if(headerVal != null && !headerVal.equals("")){
// parse it on : to get number of headers
String[] result = headerVal.split(":");
for (String eachString : result){
@@ -356,8 +355,6 @@ public class ActionPolicy extends Policy {
String[] textFieldVals = eachString.split("=");
obligation.getAttributeAssignmentExpression().add(addDynamicHeaders(textFieldVals[0], textFieldVals[1]));
}
- }
-
}
obligations.getObligationExpression().add(obligation);