From 79ae3f7f229db52b8ab18c405c5109f8d18db1b6 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Tue, 24 Jul 2018 14:23:37 +0100 Subject: Fix bug in APEX parameter service The parameter calss name was not initialized in the constructor of the parameter service The web socket connections() method is depricated and replaced by getConnections() Fixed order of build in main pom to put packages module last fixed some comments that were incorrect Change-Id: I6340655100655e181e2d97fe39def4874873dff5 Issue-ID: POLICY-954 Signed-off-by: liamfallon --- .../onap/policy/apex/model/basicmodel/service/AbstractParameters.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'model/basic-model') diff --git a/model/basic-model/src/main/java/org/onap/policy/apex/model/basicmodel/service/AbstractParameters.java b/model/basic-model/src/main/java/org/onap/policy/apex/model/basicmodel/service/AbstractParameters.java index c7ec2d662..cc7c7b06f 100644 --- a/model/basic-model/src/main/java/org/onap/policy/apex/model/basicmodel/service/AbstractParameters.java +++ b/model/basic-model/src/main/java/org/onap/policy/apex/model/basicmodel/service/AbstractParameters.java @@ -32,7 +32,7 @@ import org.onap.policy.apex.model.utilities.Assertions; */ public abstract class AbstractParameters { // The name of the parameter subclass - private String parameterClassName = this.getClass().getCanonicalName(); + private final String parameterClassName; /** * Constructor, creates a parameter class that must be a subclass of {@link AbstractParameters}. @@ -47,6 +47,8 @@ public abstract class AbstractParameters { throw new ApexRuntimeException( "class \"" + parameterClassName + "\" not found or not an instance of \"" + this.getClass().getCanonicalName() + "\"", e); } + + this.parameterClassName = parameterClassName; } /** -- cgit 1.2.3-korg