Merge branch '6.0.x'
This commit is contained in:
commit
3758e5155c
|
|
@ -1472,7 +1472,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
|
||||||
}
|
}
|
||||||
TypeConverter converter = (typeConverter != null ? typeConverter : getTypeConverter());
|
TypeConverter converter = (typeConverter != null ? typeConverter : getTypeConverter());
|
||||||
Object result = converter.convertIfNecessary(matchingBeans.values(), resolvedArrayType);
|
Object result = converter.convertIfNecessary(matchingBeans.values(), resolvedArrayType);
|
||||||
if (result instanceof Object[] array) {
|
if (result instanceof Object[] array && array.length > 1) {
|
||||||
Comparator<Object> comparator = adaptDependencyComparator(matchingBeans);
|
Comparator<Object> comparator = adaptDependencyComparator(matchingBeans);
|
||||||
if (comparator != null) {
|
if (comparator != null) {
|
||||||
Arrays.sort(array, comparator);
|
Arrays.sort(array, comparator);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue