Skip to content
Permalink
Browse files
Actully close datasources
sualeh committed Sep 9, 2022
1 parent 4c5e9a8 commit 07c7368
Showing 1 changed file with 2 additions and 3 deletions.
}

@Override
public void close() throws Exception {
if (dataSource instanceof Closeable) {
((Closeable) dataSource).close();
if (dataSource instanceof AutoCloseable) {
((AutoCloseable) dataSource).close();
} else {
final Method method = shutdownMethod();
if (method != null) {

COLLECTOR-SAHAB / differentiating test: LoadedShellCommandsTest

method.printStackPropertiesSet = false only occurs in the original version.

method.setAccessible(true);
method.invoke(dataSource);
}
}
}
@Override

0 comments on commit 07c7368

Please sign in to comment.