Add a generic to DataSourceBuilder
Closes gh-7942
This commit is contained in:
@@ -131,8 +131,8 @@ public class DataSourceAutoConfiguration {
|
||||
* @return the class loader
|
||||
*/
|
||||
private ClassLoader getDataSourceClassLoader(ConditionContext context) {
|
||||
Class<?> dataSourceClass = new DataSourceBuilder(context.getClassLoader())
|
||||
.findType();
|
||||
Class<?> dataSourceClass = DataSourceBuilder
|
||||
.findType(context.getClassLoader());
|
||||
return (dataSourceClass == null ? null : dataSourceClass.getClassLoader());
|
||||
}
|
||||
|
||||
|
||||
@@ -180,7 +180,7 @@ public class DataSourceProperties
|
||||
* @return a {@link DataSourceBuilder} initialized with the customizations defined on
|
||||
* this instance
|
||||
*/
|
||||
public DataSourceBuilder initializeDataSourceBuilder() {
|
||||
public DataSourceBuilder<?> initializeDataSourceBuilder() {
|
||||
return DataSourceBuilder.create(getClassLoader()).type(getType())
|
||||
.driverClassName(determineDriverClassName()).url(determineUrl())
|
||||
.username(determineUsername()).password(determinePassword());
|
||||
|
||||
Reference in New Issue
Block a user