Skip to content

Commit 2ffe480

Browse files
committed
Polish
1 parent cbae313 commit 2ffe480

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/influx/InfluxDbAutoConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public InfluxDB influxDb() {
5353
if (Strings.isNullOrEmpty(this.properties.getUser())) {
5454
return InfluxDBFactory.connect(this.properties.getUrl());
5555
}
56-
return InfluxDBFactory.connect(this.properties.getUrl(), this.properties.getUser(),
57-
this.properties.getPassword());
56+
return InfluxDBFactory.connect(this.properties.getUrl(),
57+
this.properties.getUser(), this.properties.getPassword());
5858
}
5959

6060
}

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/neo4j/MixedNeo4jRepositoriesAutoConfigurationTests.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,10 @@ public void testJpaRepositoryConfigurationWithNeo4jOverlapDisabled()
9191
assertThat(this.context.getBean(CityRepository.class)).isNotNull();
9292
}
9393

94-
private void load(Class config, String... environment) {
94+
private void load(Class<?> config, String... environment) {
9595
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
96-
TestPropertyValues.of(environment)
97-
.and("spring.datasource.initialize", "false")
98-
.and("spring.data.neo4j.uri", "http://localhost:8989")
99-
.applyTo(ctx);
96+
TestPropertyValues.of(environment).and("spring.datasource.initialize", "false")
97+
.and("spring.data.neo4j.uri", "http://localhost:8989").applyTo(ctx);
10098
ctx.register(config);
10199
ctx.register(DataSourceAutoConfiguration.class,
102100
HibernateJpaAutoConfiguration.class,

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/redis/RedisAutoConfigurationTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ public void testOverrideRedisConfiguration() {
8686
@Test
8787
public void testCustomizeRedisConfiguration() {
8888
load(CustomConfiguration.class);
89-
LettuceConnectionFactory cf = this.context.getBean(LettuceConnectionFactory.class);
89+
LettuceConnectionFactory cf = this.context
90+
.getBean(LettuceConnectionFactory.class);
9091
assertThat(cf.isUseSsl()).isTrue();
9192
}
9293

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/influx/InfluxDbAutoConfigurationTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ public void influxDbRequiresUrl() {
5050

5151
@Test
5252
public void influxDbCanBeCustomized() {
53-
load("spring.influx.url=http://localhost",
54-
"spring.influx.password:password",
53+
load("spring.influx.url=http://localhost", "spring.influx.password:password",
5554
"spring.influx.user:user");
5655
assertThat(this.context.getBeansOfType(InfluxDB.class)).hasSize(1);
5756
}

0 commit comments

Comments
 (0)