summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorDominic Lunanuova <dgl@research.att.com>2019-03-20 15:30:34 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-20 15:30:34 +0000
commit672890f7bcb936426ee5b1c577350496b3c9313d (patch)
tree9e54cf778a6f987a7c19f5eb79cc80b2068c5c58 /src/main/java/org
parent7fff84259b4f99298a117935e407561df9cf5878 (diff)
parente3a6f55795fe28bdcc9091a93b16ce4520fb21a7 (diff)
Merge "DBMap.java - Sonar Fix"
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/onap/dmaap/dbcapi/database/DBMap.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/onap/dmaap/dbcapi/database/DBMap.java b/src/main/java/org/onap/dmaap/dbcapi/database/DBMap.java
index 6f63848..b3282ed 100644
--- a/src/main/java/org/onap/dmaap/dbcapi/database/DBMap.java
+++ b/src/main/java/org/onap/dmaap/dbcapi/database/DBMap.java
@@ -59,7 +59,7 @@ public class DBMap<C> extends TableHandler<C> implements Map<String, C> {
return(2);
}
public Collection<C> values() {
- Collection<C> ret = new Vector<>();
+ Collection<C> ret = new ArrayList<>();
for (Map.Entry<String, C> x: list()) {
ret.add(x.getValue());
}
@@ -110,7 +110,6 @@ public class DBMap<C> extends TableHandler<C> implements Map<String, C> {
} catch (Exception e) {
throw new DBException(e);
}
- PreparedStatement ps = null;
return((new ConnWrapper<C, C>() {
protected C run(C val) throws Exception {
ps = c.prepareStatement(insorreplstmt);