X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=vid-app-common%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenecomp%2Fvid%2Fproperties%2FVidProperties.java;h=141b9b27c5d62d9fe9fc104e2a0f496020f7f8c2;hb=b35670742c728d7d85da2f9c856c51a5889449d6;hp=38062df406b3406ef74dafc850a72de6fadc0a8c;hpb=49a483a9b40cb429717ccec69fa99e4908aadbb6;p=vid.git diff --git a/vid-app-common/src/main/java/org/openecomp/vid/properties/VidProperties.java b/vid-app-common/src/main/java/org/openecomp/vid/properties/VidProperties.java index 38062df40..141b9b27c 100755 --- a/vid-app-common/src/main/java/org/openecomp/vid/properties/VidProperties.java +++ b/vid-app-common/src/main/java/org/openecomp/vid/properties/VidProperties.java @@ -53,27 +53,21 @@ public class VidProperties extends SystemProperties { * * @return the property value or a default value */ - public static String[] getAsdcModelNamespace() { + public static String getAsdcModelNamespace() { String methodName = "getAsdcModelNamespace "; - String[] asdcModelNamespaces = null; - String value = null; + String asdcModelNamespace = ModelConstants.DEFAULT_ASDC_MODEL_NAMESPACE; try { - value = SystemProperties.getProperty(ModelConstants.ASDC_MODEL_NAMESPACE); - if ( value == null || value.isEmpty()) { - asdcModelNamespaces = new String[1]; - asdcModelNamespaces[0] = ModelConstants.DEFAULT_ASDC_MODEL_NAMESPACE; + asdcModelNamespace = SystemProperties.getProperty(ModelConstants.ASDC_MODEL_NAMESPACE); + if ( asdcModelNamespace == null || asdcModelNamespace.isEmpty()) { + asdcModelNamespace = ModelConstants.DEFAULT_ASDC_MODEL_NAMESPACE; } - else { - asdcModelNamespaces = value.split(","); - } } catch ( Exception e ) { LOG.error (EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + methodName + "unable to find the value, using the default " + ModelConstants.DEFAULT_ASDC_MODEL_NAMESPACE); - asdcModelNamespaces = new String[1]; - asdcModelNamespaces[0] = ModelConstants.DEFAULT_ASDC_MODEL_NAMESPACE; + asdcModelNamespace = ModelConstants.DEFAULT_ASDC_MODEL_NAMESPACE; } - return (asdcModelNamespaces); + return (asdcModelNamespace); } /** * Gets the specified property value. If the property is not defined, returns a default value. @@ -96,5 +90,4 @@ public class VidProperties extends SystemProperties { } return (propValue); } - }