From 1134bd40da28d3833a0dd4f821e75ec938f6061f Mon Sep 17 00:00:00 2001 From: rb7147 Date: Thu, 6 Sep 2018 16:36:22 -0400 Subject: Resolved XACML Platform Sonar issues Issue-ID: POLICY-902 Change-Id: If22627dfe7df993b5c725ddf3a66c10ebbaa73ca Signed-off-by: rb7147 --- .../src/main/java/org/onap/policy/xacml/util/XACMLPolicyWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ONAP-XACML/src') diff --git a/ONAP-XACML/src/main/java/org/onap/policy/xacml/util/XACMLPolicyWriter.java b/ONAP-XACML/src/main/java/org/onap/policy/xacml/util/XACMLPolicyWriter.java index e1d0223f6..2aaa4e124 100644 --- a/ONAP-XACML/src/main/java/org/onap/policy/xacml/util/XACMLPolicyWriter.java +++ b/ONAP-XACML/src/main/java/org/onap/policy/xacml/util/XACMLPolicyWriter.java @@ -142,7 +142,7 @@ public class XACMLPolicyWriter { if (policy instanceof PolicyType) { policyElement = new ObjectFactory().createPolicy((PolicyType) policy); return getByteArrayInputStream(policyElement, PolicyType.class); - } else if (policy instanceof PolicyType) { + } else if (policy instanceof PolicySetType) { policyElement = new ObjectFactory().createPolicySet((PolicySetType) policy); return getByteArrayInputStream(policyElement, PolicySetType.class); } -- cgit 1.2.3-korg