refactored code, use public field instead of public getter.

This commit is contained in:
wenshao
2016-09-13 10:39:12 +08:00
parent c73573ac8c
commit 49d7884c96
7 changed files with 27 additions and 37 deletions
@@ -346,7 +346,7 @@ public class DruidPooledConnection extends PoolableWrapper implements javax.sql.
private void initStatement(PreparedStatementHolder stmtHolder) throws SQLException {
stmtHolder.incrementInUseCount();
holder.getDataSource().initStatement(this, stmtHolder.getStatement());
holder.getDataSource().initStatement(this, stmtHolder.statement);
}
@Override