Skip to content

Commit 198093c

Browse files
committed
Fix violation reported by Checkstyle
1 parent a6f8351 commit 198093c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/liquibase/LiquibaseAutoConfiguration.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,17 @@ public SpringLiquibase liquibase() {
117117

118118
private SpringLiquibase createSpringLiquibase() {
119119
SpringLiquibase liquibase;
120-
DataSource dataSource = getDataSource();
121-
if (dataSource == null) {
122-
dataSource = DataSourceBuilder.create().url(this.properties.getUrl())
120+
DataSource dataSourceToUse = getDataSource();
121+
if (dataSourceToUse == null) {
122+
dataSourceToUse = DataSourceBuilder.create().url(this.properties.getUrl())
123123
.username(this.properties.getUser())
124124
.password(this.properties.getPassword()).build();
125125
liquibase = new DataSourceClosingSpringLiquibase();
126126
}
127127
else {
128128
liquibase = new SpringLiquibase();
129129
}
130-
liquibase.setDataSource(dataSource);
130+
liquibase.setDataSource(dataSourceToUse);
131131
return liquibase;
132132
}
133133

0 commit comments

Comments
 (0)