diff options
author | amshegokar <AS00500801@techmahindra.com> | 2017-09-11 20:12:20 +0530 |
---|---|---|
committer | Atul Shegokar <as00500801@techmahindra.com> | 2017-09-11 15:19:13 +0000 |
commit | bb5f940c520c7dc8111bce704a19066b2f51301a (patch) | |
tree | e83e28fed5809004d172cbe4d9ff931556c90acd | |
parent | cc4274f251d7c634cfa2d1dc5bccdd4de9fb1c2b (diff) |
Sonar Blocker
Sonar Blocker for ONAP-PAP-REST
Change-Id: Ic8aaa0728a43936cd4c6e1ed590e01ba8f0fbc9c
Issue-ID: POLICY-217
Signed-off-by: amshegokar <AS00500801@techmahindra.com>
-rw-r--r-- | ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/components/ActionPolicy.java | 5 |
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); |