From e9c14cfca7af2ec822a6c88724c055fbd716152f Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Fri, 10 Jan 2020 10:32:17 -0500 Subject: Prepare drools-pdp for java 11 The Observer class has been deprecated. Changed the code to use StateChangeNotifier, instead, in anticipation of a corresponding change in policy/common. Also fixed new issue with missing getSupportedPolicyTypes() method. Issue-ID: POLICY-1406 Signed-off-by: Jim Hahn Change-Id: I2d3ee29f13bd12a2e16644a1746f066c91c05475 --- .../policy/drools/statemanagement/StateManagementFeatureApi.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'api-state-management/src/main/java/org/onap') diff --git a/api-state-management/src/main/java/org/onap/policy/drools/statemanagement/StateManagementFeatureApi.java b/api-state-management/src/main/java/org/onap/policy/drools/statemanagement/StateManagementFeatureApi.java index bdac688e..c267968c 100644 --- a/api-state-management/src/main/java/org/onap/policy/drools/statemanagement/StateManagementFeatureApi.java +++ b/api-state-management/src/main/java/org/onap/policy/drools/statemanagement/StateManagementFeatureApi.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * policy-core * ================================================================================ - * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017-2020 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,10 +20,10 @@ package org.onap.policy.drools.statemanagement; -import java.util.Observer; import javax.validation.constraints.NotNull; import org.onap.policy.common.capabilities.Lockable; import org.onap.policy.common.im.AllSeemsWellException; +import org.onap.policy.common.im.StateChangeNotifier; import org.onap.policy.common.utils.services.OrderedService; /** @@ -61,7 +61,7 @@ public interface StateManagementFeatureApi extends OrderedService, Lockable { * * @param stateChangeObserver observer */ - void addObserver(Observer stateChangeObserver); + void addObserver(StateChangeNotifier stateChangeObserver); /** * Returns the X.731 Administrative State for this resource. -- cgit 1.2.3-korg