Skip to content

Commit

Permalink
Use CollectionFactory#newLinkedHashSet for method arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoeller committed Jun 17, 2024
1 parent 6d5c312 commit a58e27e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ private Object[] resolveMethodArguments(Method method, Object bean, @Nullable St
int argumentCount = method.getParameterCount();
Object[] arguments = new Object[argumentCount];
DependencyDescriptor[] descriptors = new DependencyDescriptor[argumentCount];
Set<String> autowiredBeanNames = new LinkedHashSet<>(argumentCount * 2);
Set<String> autowiredBeanNames = CollectionUtils.newLinkedHashSet(argumentCount);
Assert.state(beanFactory != null, "No BeanFactory available");
TypeConverter typeConverter = beanFactory.getTypeConverter();
for (int i = 0; i < arguments.length; i++) {
Expand Down

0 comments on commit a58e27e

Please sign in to comment.