Fixed sonar code-smells/issues across this file.
Issue-ID: DMAAP-711
Change-Id: I69a911f9b6633bc98cfc08674d88a407e3281aa6
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
super(cf, cls, tabname, null);
singleton = cls.newInstance();
}
super(cf, cls, tabname, null);
singleton = cls.newInstance();
}
- public C get() throws DBException {
return((new ConnWrapper<C, Object>() {
protected C run(Object junk) throws Exception {
ps = c.prepareStatement(getstmt);
return((new ConnWrapper<C, Object>() {
protected C run(Object junk) throws Exception {
ps = c.prepareStatement(getstmt);
}
}).protect(cf, null));
}
}
}).protect(cf, null));
}
- public void init(C val) throws DBException {
+ public void init(C val) {
if (get() != null) {
return;
}
if (get() != null) {
return;
}
- 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);
(new ConnWrapper<Void, C>() {
protected Void run(C val) throws Exception {
ps = c.prepareStatement(insorreplstmt);