From bb5f940c520c7dc8111bce704a19066b2f51301a Mon Sep 17 00:00:00 2001 From: amshegokar Date: Mon, 11 Sep 2017 20:12:20 +0530 Subject: Sonar Blocker Sonar Blocker for ONAP-PAP-REST Change-Id: Ic8aaa0728a43936cd4c6e1ed590e01ba8f0fbc9c Issue-ID: POLICY-217 Signed-off-by: amshegokar --- .../java/org/onap/policy/pap/xacml/rest/components/ActionPolicy.java | 5 +---- 1 file changed, 1 insertion(+), 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); -- cgit 1.2.3-korg