From b264dee1ac60671ce6174bdd6d4e067219dc48b3 Mon Sep 17 00:00:00 2001 From: ezhil Date: Wed, 26 Dec 2018 16:49:07 +0530 Subject: Fixed sonar fix in DbConfigPool.java Fixed major sonar issue Issue-ID: CCSDK-796 Change-Id: Id8a655875c972bb3df1f12f211b6a0068922b21d Signed-off-by: ezhil --- .../java/org/onap/ccsdk/sli/core/dblib/config/DbConfigPool.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'dblib/provider') diff --git a/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/config/DbConfigPool.java b/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/config/DbConfigPool.java index fb94ea0e7..6cb1d9c33 100644 --- a/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/config/DbConfigPool.java +++ b/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/config/DbConfigPool.java @@ -28,19 +28,18 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class DbConfigPool { - private static Logger LOGGER = LoggerFactory.getLogger(DbConfigPool.class); - + private static Logger log = LoggerFactory.getLogger(DbConfigPool.class); private final String type; - + private static final int timeOut=0; private ArrayList configurations = new ArrayList<>(); public DbConfigPool(Properties properties) { - LOGGER.debug("Initializing DbConfigType"); + log.debug("Initializing DbConfigType"); type = properties.getProperty(BaseDBConfiguration.DATABASE_TYPE, "JDBC").toUpperCase(); } public int getTimeout() { - return 0; + return timeOut; } public String getType() { -- cgit 1.2.3-korg