diff options
author | Driptaroop Das <driptaroop.das@in.ibm.com> | 2019-03-04 01:21:17 +0530 |
---|---|---|
committer | Driptaroop Das <driptaroop.das@in.ibm.com> | 2019-03-04 01:21:39 +0530 |
commit | e3a6f55795fe28bdcc9091a93b16ce4520fb21a7 (patch) | |
tree | 1ea6cd8a74609491d6852c8a0f8f4cfb7316398c /src/main/java | |
parent | ecd4be66f501c6cbbcd53b302f477bd0c8d17a6a (diff) |
DBMap.java - Sonar Fix
DBMap.java - Sonar Fix
Issue-ID: DMAAP-1071
Change-Id: I6f1be61ac8ccd337fea1af11659807f1d7bf4046
Signed-off-by: Driptaroop Das <driptaroop.das@in.ibm.com>
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/onap/dmaap/dbcapi/database/DBMap.java | 3 |
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); |