Skip to content

Commit

Permalink
removed not necessary casting
Browse files Browse the repository at this point in the history
  • Loading branch information
car031 committed Nov 25, 2024
1 parent ab36e58 commit c767403
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@ private void destroyDatabase() throws SQLException {
}

protected Connection getConnection() throws SQLException {
DataSource ds = (DataSource) context.getBean("DataSource");
return ds.getConnection();
return context.getBean(DataSource.class).getConnection();
}

protected void waiting() throws InterruptedException {
Expand Down

0 comments on commit c767403

Please sign in to comment.