Nitin thinks this is more readable. Not sure I agree, but I don't care enough to argue.

2.3.0
Brett Wooldridge 10 years ago
parent 2de809bebc
commit cd3af22e29

@ -202,11 +202,13 @@ public class HikariDataSource extends HikariConfig implements DataSource, Closea
if (iface.isInstance(this)) {
return true;
}
else if (pool != null) {
if (pool != null) {
if (iface.isInstance(pool.getDataSource())) {
return true;
}
else if (pool.getDataSource() instanceof Wrapper) {
if (pool.getDataSource() instanceof Wrapper) {
return pool.getDataSource().isWrapperFor(iface);
}
}

Loading…
Cancel
Save