Skip to content

Commit 5f51e86

Browse files
committed
Avoid relying on runtime constructor order for argument conversion
1 parent 1b09718 commit 5f51e86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-beans/src/test/java/org/springframework/beans/factory/DefaultListableBeanFactoryTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,7 @@ public void testGetBeanWithArgsNotCreatedForFactoryBeanChecking() {
18351835
private RootBeanDefinition createConstructorDependencyBeanDefinition(int age) {
18361836
RootBeanDefinition bd = new RootBeanDefinition(ConstructorDependency.class);
18371837
bd.setScope(RootBeanDefinition.SCOPE_PROTOTYPE);
1838-
bd.getConstructorArgumentValues().addGenericArgumentValue(String.valueOf(age));
1838+
bd.getConstructorArgumentValues().addGenericArgumentValue(age);
18391839
return bd;
18401840
}
18411841

0 commit comments

Comments
 (0)