diff options
author | 2018-12-26 16:49:07 +0530 | |
---|---|---|
committer | 2019-01-04 09:00:04 +0000 | |
commit | b264dee1ac60671ce6174bdd6d4e067219dc48b3 (patch) | |
tree | 04d407c6e9983b1ade5d56c45cd579d1944cb64b /dblib/provider/src/main | |
parent | 0935246ecb1cad72a86eeedbc43f1ebdbbe5a9c8 (diff) |
Fixed sonar fix in DbConfigPool.java
Fixed major sonar issue
Issue-ID: CCSDK-796
Change-Id: Id8a655875c972bb3df1f12f211b6a0068922b21d
Signed-off-by: ezhil <ezhrajam@in.ibm.com>
Diffstat (limited to 'dblib/provider/src/main')
-rw-r--r-- | dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/config/DbConfigPool.java | 9 |
1 files changed, 4 insertions, 5 deletions
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 fb94ea0e..6cb1d9c3 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<BaseDBConfiguration> 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() { |