See gh-31930
This commit is contained in:
Johnny Lim
2024-01-01 12:21:46 +09:00
committed by Stéphane Nicoll
parent fdb454b9a4
commit ff8097d37c
5 changed files with 9 additions and 9 deletions

View File

@@ -367,7 +367,7 @@ class BeanDefinitionPropertiesCodeGenerator {
* @param castNecessary whether a cast is necessary
* @param castType the type to cast to
* @param valueCode the code for the value
* @return the existing value or a form of {@code (CastType) valueCode} if a
* @return the existing value or a form of {@code (castType) valueCode} if a
* cast is necessary
*/
private CodeBlock castIfNecessary(boolean castNecessary, Class<?> castType, CodeBlock valueCode) {

View File

@@ -46,7 +46,7 @@ class SimpleInstantiationStrategyTests {
}
@Test
void instantiateWitArgs() {
void instantiateWithArgs() {
RootBeanDefinition bd = new RootBeanDefinition(String.class);
Object simpleBean = instantiate(bd, new SampleFactory(),
method(SampleFactory.class, "beanWithTwoArgs"), "Test", 42);
@@ -54,7 +54,7 @@ class SimpleInstantiationStrategyTests {
}
@Test
void instantiateWitSubClassFactoryArgs() {
void instantiateWithSubClassFactoryArgs() {
RootBeanDefinition bd = new RootBeanDefinition(String.class);
Object simpleBean = instantiate(bd, new ExtendedSampleFactory(),
method(SampleFactory.class, "beanWithTwoArgs"), "Test", 42);