From d9bd925e183effc84d943a5f30cd6f1cab5b5430 Mon Sep 17 00:00:00 2001 From: Ramanjaneya-Huawei Date: Thu, 19 Oct 2017 10:41:32 +0530 Subject: Add a private constructor Change-Id: Ic826c93db7933a9a1a25c7ee09f8bc156dabadb1 Issue-id: SO-224 Signed-off-by: Ramanjaneya-Huawei --- .../src/main/java/org/openecomp/mso/apihandlerinfra/Constants.java | 5 ++++- .../src/main/java/org/openecomp/mso/apihandlerinfra/Messages.java | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'mso-api-handlers/mso-api-handler-infra/src/main/java') diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/Constants.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/Constants.java index 3e29a8221a..328ef816e9 100644 --- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/Constants.java +++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/Constants.java @@ -23,6 +23,9 @@ package org.openecomp.mso.apihandlerinfra; public class Constants { + private Constants() { + } + public static final String VNF_TYPES_PATH = "/{version: v1|v2|v3}/vnf-types"; public static final String NETWORK_TYPES_PATH = "/{version: v1|v2|v3}/network-types"; public static final String VF_MODULE_MODEL_NAMES_PATH = "/{version: v2|v3}/vf-module-model-names"; @@ -47,4 +50,4 @@ public class Constants { public static final String VALID_INSTANCE_NAME_FORMAT = "^[a-zA-Z][a-zA-Z0-9._-]*$"; public static final String A_LA_CARTE = "aLaCarte"; -} \ No newline at end of file +} diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/Messages.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/Messages.java index 91bf2df48c..746493c194 100644 --- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/Messages.java +++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/Messages.java @@ -28,7 +28,7 @@ import org.openecomp.mso.apihandler.common.ErrorNumbers; public class Messages { - public static final Map errors = new HashMap<>(); + protected static final Map errors = new HashMap<>(); static { errors.put(ErrorNumbers.REQUEST_FAILED_SCHEMA_VALIDATION + "_service", "Service request FAILED schema validation. %s"); errors.put(ErrorNumbers.REQUEST_FAILED_SCHEMA_VALIDATION + "_feature", "Feature request FAILED schema validation. %s"); -- cgit 1.2.3-korg