summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRam Koya <rk541m@att.com>2018-09-04 13:11:26 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-04 13:11:26 +0000
commitbf1c4acfaa70c7b3ac5f205b3d13c29d8b52c776 (patch)
tree07ef97519920df9b69ba7ebc551b40ee1cae9d29 /src
parent1fb6824940d14d70f80d7bb2138cd1137b8057be (diff)
parent9f2dfd0f577f3ad6bae0b110b89c72267ff6f914 (diff)
Merge "ConnectionFactory- Fixed sonar issue"
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/onap/dmaap/dbcapi/database/ConnectionFactory.java9
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);
+ }
}
}