mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
code format
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user