Skip to content

Commit c767403

Browse files
committed
removed not necessary casting
1 parent ab36e58 commit c767403

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

logicaldoc-util/src/main/java/com/logicaldoc/util/junit/AbstractTestCase.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,7 @@ private void destroyDatabase() throws SQLException {
211211
}
212212

213213
protected Connection getConnection() throws SQLException {
214-
DataSource ds = (DataSource) context.getBean("DataSource");
215-
return ds.getConnection();
214+
return context.getBean(DataSource.class).getConnection();
216215
}
217216

218217
protected void waiting() throws InterruptedException {

0 commit comments

Comments
 (0)