Skip to content

Commit 42bf594

Browse files
committed
Polish condition name
See gh-14285
1 parent ba18fb5 commit 42bf594

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* @author Stephane Nicoll
3535
* @since 2.0.5
3636
*/
37-
public class OnListCondition extends SpringBootCondition {
37+
public class OnPropertyListCondition extends SpringBootCondition {
3838

3939
private static final Bindable<List<String>> SIMPLE_LIST = Bindable
4040
.listOf(String.class);
@@ -49,7 +49,7 @@ public class OnListCondition extends SpringBootCondition {
4949
* @param messageBuilder a message builder supplier that should provide a fresh
5050
* instance on each call
5151
*/
52-
protected OnListCondition(String propertyName,
52+
protected OnPropertyListCondition(String propertyName,
5353
Supplier<ConditionMessage.Builder> messageBuilder) {
5454
this.propertyName = propertyName;
5555
this.messageBuilder = messageBuilder;

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/couchbase/OnBootstrapHostsCondition.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package org.springframework.boot.autoconfigure.couchbase;
1818

1919
import org.springframework.boot.autoconfigure.condition.ConditionMessage;
20-
import org.springframework.boot.autoconfigure.condition.OnListCondition;
20+
import org.springframework.boot.autoconfigure.condition.OnPropertyListCondition;
2121

2222
/**
2323
* Condition to determine if {@code spring.couchbase.bootstrap-hosts} is specified.
@@ -26,7 +26,7 @@
2626
* @author Madhura Bhave
2727
* @author Eneias Silva
2828
*/
29-
class OnBootstrapHostsCondition extends OnListCondition {
29+
class OnBootstrapHostsCondition extends OnPropertyListCondition {
3030

3131
OnBootstrapHostsCondition() {
3232
super("spring.couchbase.bootstrap-hosts",

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/webservices/OnWsdlLocationsCondition.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
package org.springframework.boot.autoconfigure.webservices;
1818

1919
import org.springframework.boot.autoconfigure.condition.ConditionMessage;
20-
import org.springframework.boot.autoconfigure.condition.OnListCondition;
20+
import org.springframework.boot.autoconfigure.condition.OnPropertyListCondition;
2121

2222
/**
2323
* Condition to determine if {@code spring.webservices.wsdl-locations} is specified.
2424
*
2525
* @author Eneias Silva
2626
* @author Stephane Nicoll
2727
*/
28-
class OnWsdlLocationsCondition extends OnListCondition {
28+
class OnWsdlLocationsCondition extends OnPropertyListCondition {
2929

3030
OnWsdlLocationsCondition() {
3131
super("spring.webservices.wsdl-locations",
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
import static org.assertj.core.api.Assertions.assertThat;
2727

2828
/**
29-
* Tests for {@link OnListCondition}.
29+
* Tests for {@link OnPropertyListCondition}.
3030
*
3131
* @author Stephane Nicoll
3232
*/
33-
public class OnListConditionTests {
33+
public class OnPropertyListConditionTests {
3434

3535
private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
3636
.withUserConfiguration(TestConfig.class);
@@ -65,7 +65,7 @@ public void propertyDefinedAsListRelaxed() {
6565
}
6666

6767
@Configuration
68-
@Conditional(TestListCondition.class)
68+
@Conditional(TestPropertyListCondition.class)
6969
protected static class TestConfig {
7070

7171
@Bean
@@ -75,9 +75,9 @@ public String foo() {
7575

7676
}
7777

78-
static class TestListCondition extends OnListCondition {
78+
static class TestPropertyListCondition extends OnPropertyListCondition {
7979

80-
TestListCondition() {
80+
TestPropertyListCondition() {
8181
super("spring.test.my-list", () -> ConditionMessage.forCondition("test"));
8282
}
8383

0 commit comments

Comments
 (0)