code format

This commit is contained in:
shaojin.wensj
2018-12-27 10:08:42 +08:00
parent 5d3e9e0edc
commit 4903a9ad3a
@@ -485,16 +485,19 @@ public class DruidPooledStatement extends PoolableWrapper implements Statement {
@Override
public void close() throws SQLException {
if (!this.closed) {
clearResultSet();
if (stmt != null) {
stmt.close();
}
this.closed = true;
if (this.closed) {
return;
}
if (conn.getConnectionHolder() != null) {
conn.getConnectionHolder().removeTrace(this);
}
clearResultSet();
if (stmt != null) {
stmt.close();
}
this.closed = true;
DruidConnectionHolder connHolder = conn.getConnectionHolder();
if (connHolder != null) {
connHolder.removeTrace(this);
}
}