#1293 - Refactor - move JdbcClose into io.ebean.util ... from io.ebeaninternal.util as it is used in public API (platform code, sequences etc)

This commit is contained in:
Rob Bygrave
2018-02-27 12:56:20 +13:00
parent 3dfdd0e2e8
commit 06bce35f5a
20 changed files with 43 additions and 159 deletions
@@ -1,5 +1,6 @@
package io.ebeaninternal.server.query;
import io.ebean.util.JdbcClose;
import io.ebeaninternal.api.SpiProfileTransactionEvent;
import io.ebeaninternal.api.SpiQuery;
import io.ebeaninternal.api.SpiTransaction;
@@ -141,8 +142,8 @@ class CQueryRowCount implements SpiProfileTransactionEvent {
* Close the resources.
*/
private void close() {
UtilJdbc.close(rset);
UtilJdbc.close(pstmt);
JdbcClose.close(rset);
JdbcClose.close(pstmt);
rset = null;
pstmt = null;
}