diff options
author | Ram Koya <rk541m@att.com> | 2018-09-04 13:10:39 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-09-04 13:10:39 +0000 |
commit | dece2051566cc8a7a1082603f1d791a0f4e57fa4 (patch) | |
tree | ffa1cfbb7f18a51f81ba641d79c9a6b469d79a42 | |
parent | c399b663374b13918dacd58812eeb5b7c834dc2f (diff) | |
parent | db04326d173868547a65f7c61f341da977a243ee (diff) |
Merge "DBSingleton.java: Fixed sonar issue"
-rw-r--r-- | src/main/java/org/onap/dmaap/dbcapi/database/DBSingleton.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/onap/dmaap/dbcapi/database/DBSingleton.java b/src/main/java/org/onap/dmaap/dbcapi/database/DBSingleton.java index 9a34f58..2633d70 100644 --- a/src/main/java/org/onap/dmaap/dbcapi/database/DBSingleton.java +++ b/src/main/java/org/onap/dmaap/dbcapi/database/DBSingleton.java @@ -34,7 +34,7 @@ public class DBSingleton<C> extends TableHandler<C> implements Singleton<C> { super(cf, cls, tabname, null); singleton = cls.newInstance(); } - public C get() throws DBException { + public C get() { return((new ConnWrapper<C, Object>() { protected C run(Object junk) throws Exception { ps = c.prepareStatement(getstmt); @@ -49,7 +49,7 @@ public class DBSingleton<C> extends TableHandler<C> implements Singleton<C> { } }).protect(cf, null)); } - public void init(C val) throws DBException { + public void init(C val) { if (get() != null) { return; } @@ -69,7 +69,7 @@ public class DBSingleton<C> extends TableHandler<C> implements Singleton<C> { } }).protect(cf, val); } - public void update(C val) throws DBException { + public void update(C val) { (new ConnWrapper<Void, C>() { protected Void run(C val) throws Exception { ps = c.prepareStatement(insorreplstmt); |