Skip to content

Commit

Permalink
Merge pull request #1790 from mustaphazorgati/master
Browse files Browse the repository at this point in the history
made closeConnection in the Runner classes deprecated
  • Loading branch information
harawata committed Dec 28, 2019
2 parents f232291 + 303fd65 commit d2cb615
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/apache/ibatis/jdbc/ScriptRunner.java
Expand Up @@ -151,6 +151,10 @@ private void executeLineByLine(Reader reader) {
}
}

/**
* @deprecated Since 3.5.4, this method is deprecated. Please close the {@link Connection} outside of this class.
*/
@Deprecated
public void closeConnection() {
try {
connection.close();
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/org/apache/ibatis/jdbc/SqlRunner.java
Expand Up @@ -191,6 +191,10 @@ public void run(String sql) throws SQLException {
}
}

/**
* @deprecated Since 3.5.4, this method is deprecated. Please close the {@link Connection} outside of this class.
*/
@Deprecated
public void closeConnection() {
try {
connection.close();
Expand Down

0 comments on commit d2cb615

Please sign in to comment.