Make all @ConfigurationPropertiesBinding @Bean methods static
See gh-45640 Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
This commit is contained in:
parent
380bfa398f
commit
c9bf87be7d
|
@ -112,7 +112,7 @@ public class FlywayAutoConfiguration {
|
|||
|
||||
@Bean
|
||||
@ConfigurationPropertiesBinding
|
||||
public StringOrNumberToMigrationVersionConverter stringOrNumberMigrationVersionConverter() {
|
||||
public static StringOrNumberToMigrationVersionConverter stringOrNumberMigrationVersionConverter() {
|
||||
return new StringOrNumberToMigrationVersionConverter();
|
||||
}
|
||||
|
||||
|
|
|
@ -264,7 +264,7 @@ class SecurityAutoConfigurationTests {
|
|||
|
||||
@Bean
|
||||
@ConfigurationPropertiesBinding
|
||||
Converter<String, TargetType> targetTypeConverter() {
|
||||
static Converter<String, TargetType> targetTypeConverter() {
|
||||
return new Converter<>() {
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1560,7 +1560,7 @@ class ConfigurationPropertiesTests {
|
|||
|
||||
@Bean
|
||||
@ConfigurationPropertiesBinding
|
||||
Converter<String, Person> personConverter() {
|
||||
static Converter<String, Person> personConverter() {
|
||||
return new PersonConverter();
|
||||
}
|
||||
|
||||
|
@ -1571,7 +1571,7 @@ class ConfigurationPropertiesTests {
|
|||
|
||||
@Bean
|
||||
@ConfigurationPropertiesBinding
|
||||
Converter<String, Alien> alienConverter() {
|
||||
static Converter<String, Alien> alienConverter() {
|
||||
return new AlienConverter();
|
||||
}
|
||||
|
||||
|
@ -1592,7 +1592,7 @@ class ConfigurationPropertiesTests {
|
|||
|
||||
@Bean
|
||||
@ConfigurationPropertiesBinding
|
||||
GenericConverter genericPersonConverter() {
|
||||
static GenericConverter genericPersonConverter() {
|
||||
return new GenericPersonConverter();
|
||||
}
|
||||
|
||||
|
@ -1603,7 +1603,7 @@ class ConfigurationPropertiesTests {
|
|||
|
||||
@Bean
|
||||
@ConfigurationPropertiesBinding
|
||||
Formatter<Person> personFormatter() {
|
||||
static Formatter<Person> personFormatter() {
|
||||
return new PersonFormatter();
|
||||
}
|
||||
|
||||
|
@ -3031,7 +3031,7 @@ class ConfigurationPropertiesTests {
|
|||
|
||||
@Bean
|
||||
@ConfigurationPropertiesBinding
|
||||
WithObjectToObjectMethodConverter withObjectToObjectMethodConverter() {
|
||||
static WithObjectToObjectMethodConverter withObjectToObjectMethodConverter() {
|
||||
return new WithObjectToObjectMethodConverter();
|
||||
}
|
||||
|
||||
|
|
|
@ -102,13 +102,13 @@ class ConversionServiceDeducerTests {
|
|||
|
||||
@Bean
|
||||
@ConfigurationPropertiesBinding
|
||||
TestConverter testConverter() {
|
||||
static TestConverter testConverter() {
|
||||
return new TestConverter();
|
||||
}
|
||||
|
||||
@Bean
|
||||
@ConfigurationPropertiesBinding
|
||||
StringConverter stringConverter() {
|
||||
static StringConverter stringConverter() {
|
||||
return new StringConverter();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue