diff options
author | Jorge Hernandez <jh1730@att.com> | 2017-06-01 22:51:59 -0500 |
---|---|---|
committer | Jorge Hernandez <jh1730@att.com> | 2017-06-01 23:05:51 -0500 |
commit | 2a78350806368ae9dd4f5e43f4652251adbb52e6 (patch) | |
tree | 05c24c68c6683164b37effe9a702750462880efa /policy-utils/src/main/java | |
parent | 508ad58c3dcc33b168a15518fcf2caf1c32310a1 (diff) |
[POLICY-9,POLICY-18] warnings + Controller hooks
1. clean up policy-utils warnings. drools-pdp project has
no warnings now.
2. add new Policy Controller hooks for feature programmability.
Change-Id: Ie991320e23e73118b235018d15ea66340a841a89
Signed-off-by: Jorge Hernandez <jh1730@att.com>
Diffstat (limited to 'policy-utils/src/main/java')
-rw-r--r-- | policy-utils/src/main/java/org/openecomp/policy/drools/utils/OrderedServiceImpl.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/policy-utils/src/main/java/org/openecomp/policy/drools/utils/OrderedServiceImpl.java b/policy-utils/src/main/java/org/openecomp/policy/drools/utils/OrderedServiceImpl.java index 809d3679..c5f9a343 100644 --- a/policy-utils/src/main/java/org/openecomp/policy/drools/utils/OrderedServiceImpl.java +++ b/policy-utils/src/main/java/org/openecomp/policy/drools/utils/OrderedServiceImpl.java @@ -45,7 +45,7 @@ public class OrderedServiceImpl<T extends OrderedService> * @param clazz the class object associated with 'T' (I supposed it could * be a subclass, but I'm not sure this is useful) */ - public OrderedServiceImpl(Class clazz) + public OrderedServiceImpl(Class<T> clazz) { // This constructor wouldn't be needed if 'T.class' was legal serviceLoader = ServiceLoader.load(clazz); @@ -75,6 +75,7 @@ public class OrderedServiceImpl<T extends OrderedService> * @return the sorted list of services implementing interface 'T' discovered * by 'ServiceLoader'. */ + @SuppressWarnings("unchecked") public synchronized List<T> rebuildList() { // build a list of all of the current implementors @@ -117,6 +118,7 @@ public class OrderedServiceImpl<T extends OrderedService> } // use this to ensure that we only use one unique instance of each class + @SuppressWarnings("rawtypes") static private HashMap<Class,OrderedService> classToSingleton = new HashMap<>(); |