aboutsummaryrefslogtreecommitdiffstats
path: root/controlloop/common/feature-controlloop-management/src/main
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2019-06-17 10:03:57 -0400
committerJim Hahn <jrh3@att.com>2019-06-17 10:03:57 -0400
commitbf6126968adcabff605775f554642dfff0644530 (patch)
tree249d486c7fa37fab1c494e8451efff95bcde768b /controlloop/common/feature-controlloop-management/src/main
parentdee583c9660357558d11a81387c84a357971708d (diff)
Change getCanonicalName() to getName() in drools-apps
Per javadocs, getName() should generally be used instead of Class.getCanonicalName(). This change only applies to classes; it does not apply to File objects. Change-Id: Ie402ab9239b2d5149c420d495f16bb82417d2d25 Issue-ID: POLICY-1646 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'controlloop/common/feature-controlloop-management/src/main')
-rw-r--r--controlloop/common/feature-controlloop-management/src/main/java/org/onap/policy/drools/apps/controlloop/feature/management/ControlLoopManagementFeature.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/controlloop/common/feature-controlloop-management/src/main/java/org/onap/policy/drools/apps/controlloop/feature/management/ControlLoopManagementFeature.java b/controlloop/common/feature-controlloop-management/src/main/java/org/onap/policy/drools/apps/controlloop/feature/management/ControlLoopManagementFeature.java
index e9fb811c7..800971a61 100644
--- a/controlloop/common/feature-controlloop-management/src/main/java/org/onap/policy/drools/apps/controlloop/feature/management/ControlLoopManagementFeature.java
+++ b/controlloop/common/feature-controlloop-management/src/main/java/org/onap/policy/drools/apps/controlloop/feature/management/ControlLoopManagementFeature.java
@@ -2,7 +2,7 @@
* ============LICENSE_START=======================================================
* ONAP
* ================================================================================
- * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2018-2019 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.
@@ -51,7 +51,7 @@ public class ControlLoopManagementFeature implements PolicyEngineFeatureAPI {
}
return controller.getDrools()
- .facts(sessionName, ControlLoopParams.class.getCanonicalName(), false)
+ .facts(sessionName, ControlLoopParams.class.getName(), false)
.stream()
.filter(c -> c instanceof ControlLoopParams)
.map(c -> (ControlLoopParams) c);