diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2018-09-03 15:12:05 +0530 |
---|---|---|
committer | IBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com> | 2018-09-03 15:12:14 +0530 |
commit | 9f2dfd0f577f3ad6bae0b110b89c72267ff6f914 (patch) | |
tree | b9413e39357c35d2dbab2298199c1d990b03262a /src | |
parent | 8b80c9a3005862032908478570f9c500bf0d9fb5 (diff) |
ConnectionFactory- Fixed sonar issue
Fixed sonar code-smells/issues accross this file.
Issue-ID: DMAAP-704
Change-Id: Ic3f7d6333f4745176204e436eb2739be63d703e1
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/onap/dmaap/dbcapi/database/ConnectionFactory.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/org/onap/dmaap/dbcapi/database/ConnectionFactory.java b/src/main/java/org/onap/dmaap/dbcapi/database/ConnectionFactory.java index 38c063c..aee3ff1 100644 --- a/src/main/java/org/onap/dmaap/dbcapi/database/ConnectionFactory.java +++ b/src/main/java/org/onap/dmaap/dbcapi/database/ConnectionFactory.java @@ -23,12 +23,9 @@ package org.onap.dmaap.dbcapi.database; import java.sql.*; import java.util.*; -import org.apache.log4j.Logger; - import com.att.eelf.configuration.EELFLogger; import com.att.eelf.configuration.EELFManager; -import org.onap.dmaap.dbcapi.logging.DmaapbcLogMessageEnum; import org.onap.dmaap.dbcapi.util.DmaapConfig; public class ConnectionFactory { @@ -90,6 +87,10 @@ public class ConnectionFactory { return; } } - try { c.close(); } catch (Exception e) {} + try { + c.close(); + } catch (Exception e) { + logger.error("Error", e); + } } } |