From b6bae924c4a794cd772ac1524089fc8739e310b1 Mon Sep 17 00:00:00 2001 From: Michael Mokry Date: Fri, 1 Dec 2017 11:39:27 -0600 Subject: Modified the code to fix various pushPolicy issues - Added modifications per Pam's review Change-Id: I5d67ee529cbc5245e7d1f8dbec6f2f2d453ce299 Issue-ID: POLICY-486 Signed-off-by: Michael Mokry --- ONAP-XACML/src/main/java/org/onap/policy/xacml/std/pap/StdPDPGroup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ONAP-XACML/src/main') diff --git a/ONAP-XACML/src/main/java/org/onap/policy/xacml/std/pap/StdPDPGroup.java b/ONAP-XACML/src/main/java/org/onap/policy/xacml/std/pap/StdPDPGroup.java index 28f6a4d03..9cdb4521d 100644 --- a/ONAP-XACML/src/main/java/org/onap/policy/xacml/std/pap/StdPDPGroup.java +++ b/ONAP-XACML/src/main/java/org/onap/policy/xacml/std/pap/StdPDPGroup.java @@ -668,7 +668,7 @@ public class StdPDPGroup extends StdPDPItemSetChangeNotifier implements OnapPDPG } public boolean removePolicy(PDPPolicy policy) { - StdPDPPolicy currentPolicy = (StdPDPPolicy) this.getPolicy(policy.getId()); + PDPPolicy currentPolicy = this.getPolicy(policy.getId()); if (currentPolicy == null) { PolicyLogger.error(MessageCodes.ERROR_DATA_ISSUE + "Policy " + policy.getId() + " does not exist."); return false; -- cgit 1.2.3-korg