mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-09 19:09:03 +00:00
Polish
This commit is contained in:
+2
-4
@@ -83,10 +83,8 @@ public class DataSourceBuilder {
|
||||
|
||||
private void bind(DataSource result) {
|
||||
MutablePropertyValues properties = new MutablePropertyValues(this.properties);
|
||||
new RelaxedDataBinder(result)
|
||||
.withAlias("url", "jdbcUrl")
|
||||
.withAlias("username", "user")
|
||||
.bind(properties);
|
||||
new RelaxedDataBinder(result).withAlias("url", "jdbcUrl")
|
||||
.withAlias("username", "user").bind(properties);
|
||||
}
|
||||
|
||||
public DataSourceBuilder type(Class<? extends DataSource> type) {
|
||||
|
||||
-1
@@ -76,7 +76,6 @@ public class AbstractDevToolsDataSourceAutoConfigurationTests {
|
||||
@Test
|
||||
public void emptyFactoryMethodMetadataIgnored() {
|
||||
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
|
||||
|
||||
DataSource dataSource = mock(DataSource.class);
|
||||
AnnotatedGenericBeanDefinition beanDefinition = new AnnotatedGenericBeanDefinition(
|
||||
dataSource.getClass());
|
||||
|
||||
Reference in New Issue
Block a user