summaryrefslogtreecommitdiffstats
path: root/common/openecomp-common-configuration-management
diff options
context:
space:
mode:
Diffstat (limited to 'common/openecomp-common-configuration-management')
-rw-r--r--common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationDataSource.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationDataSource.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationDataSource.java
index 0cfc96bc7f..a60403e4dc 100644
--- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationDataSource.java
+++ b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ConfigurationDataSource.java
@@ -22,11 +22,16 @@ public final class ConfigurationDataSource {
private static Set<String> validCallers = Collections.unmodifiableSet(new HashSet<>(
Arrays.asList(ConfigurationUtils.class.getName(), CliConfigurationImpl.class.getName())));
+ private ConfigurationDataSource() {
+ //Hide constructor to prevent instantiation using the default implicit constructor
+ }
+
static {
try {
configDBDatasource = initDataSource();
} catch (Exception exception) {
- System.err.println("Datasource initialization error. Configuration management will be using in-memory persistence.");
+ System.err.println("Datasource initialization error. Configuration management will be using"
+ + "in-memory persistence.");
}
}
@@ -83,7 +88,6 @@ public final class ConfigurationDataSource {
Driver driver = Driver.class.cast(Class.forName(driverClassName).newInstance());
return driver.acceptsURL(url);
} catch (Exception exception) {
- exception.printStackTrace();
return false;
}
}