No need for null check.
@@ -56,7 +56,6 @@ class ConnectionFactoryFactory {
} else {
basicDataSource.log("DBCP DataSource configured without a 'password'");
}
- if (basicDataSource != null) {
final String connectionFactoryClassName = basicDataSource.getConnectionFactoryClassName();
if (connectionFactoryClassName != null) {
try {
@@ -71,7 +70,6 @@ class ConnectionFactoryFactory {
throw new SQLException(message, t);
}
}
- }
// Defaults to DriverConnectionFactory
return new DriverConnectionFactory(driver, url, connectionProperties);
}
