Skip to content

Commit 1535722

Browse files
committed
Fix incorrect resource closing order in AbstractCursorItemReader#doClose
Signed-off-by: banseok1216 <[email protected]>
1 parent a2d61f8 commit 1535722

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/database/JdbcCursorItemReader.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ protected void openCursor(Connection con) {
150150
@Override
151151
protected void cleanupOnClose(Connection connection) {
152152
JdbcUtils.closeStatement(this.preparedStatement);
153-
JdbcUtils.closeConnection(connection);
154153
}
155154

156155
@Override

spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/database/StoredProcedureItemReader.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ protected void openCursor(Connection con) {
240240
@Override
241241
protected void cleanupOnClose(Connection connection) {
242242
JdbcUtils.closeStatement(this.callableStatement);
243-
JdbcUtils.closeConnection(connection);
244243
}
245244

246245
@Override

0 commit comments

Comments
 (0)