Polishing

Closes gh-31522
This commit is contained in:
Johnny Lim
2023-10-30 22:04:29 +09:00
committed by Sam Brannen
parent 8a2acbeac1
commit 2b750926c3
20 changed files with 32 additions and 30 deletions

View File

@@ -511,7 +511,7 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo
logger.warn("Cannot enhance @Configuration bean definition '" + beanName +
"' since its singleton instance has been created too early. The typical cause " +
"is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor " +
"return type: Consider declaring such methods as 'static' and/or mark the " +
"return type: Consider declaring such methods as 'static' and/or marking the " +
"containing configuration class as 'proxyBeanMethods=false'.");
}
configBeanDefs.put(beanName, abd);

View File

@@ -240,7 +240,7 @@ public class MethodValidationInterceptor implements MethodInterceptor {
ReactiveAdapterRegistry.getSharedInstance();
public static Object[] insertAsyncValidation(
static Object[] insertAsyncValidation(
Supplier<SpringValidatorAdapter> validatorAdapterSupplier, boolean adaptViolations,
Object target, Method method, Object[] arguments) {

View File

@@ -82,7 +82,7 @@ class InstantFormatterTests {
@ParameterizedTest
@ArgumentsSource(RandomEpochMillisProvider.class)
void should_parse_into_an_Instant_from_epoch_mili(Instant input) throws ParseException {
void should_parse_into_an_Instant_from_epoch_milli(Instant input) throws ParseException {
Instant expected = input;
Instant actual = instantFormatter.parse(Long.toString(input.toEpochMilli()), null);

View File

@@ -44,7 +44,7 @@ class FormattingConversionServiceRuntimeHintsTests {
}
@Test
void montearyAmountHasHints() {
void monetaryAmountHasHints() {
assertThat(RuntimeHintsPredicates.reflection().onType(javax.money.MonetaryAmount.class)).accepts(this.hints);
}

View File

@@ -36,9 +36,11 @@ import org.springframework.validation.method.ParameterErrors;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Tests for method validation proxy with reactor.
*
* @author Rossen Stoyanchev
*/
public class MethodValidationProxyReactorTests {
class MethodValidationProxyReactorTests {
@Test
void validMonoArgument() {