@@ -464,15 +464,13 @@ public void ifUnique(Consumer<T> dependencyConsumer) throws BeansException {
464
464
}
465
465
@ SuppressWarnings ("unchecked" )
466
466
@ Override
467
- @ SuppressWarnings ("unchecked" )
468
467
public Stream <T > stream () {
469
468
return Arrays .stream (getBeanNamesForTypedStream (requiredType , allowEagerInit ))
470
469
.map (name -> (T ) getBean (name ))
471
470
.filter (bean -> !(bean instanceof NullBean ));
472
471
}
473
472
@ SuppressWarnings ("unchecked" )
474
473
@ Override
475
- @ SuppressWarnings ("unchecked" )
476
474
public Stream <T > orderedStream () {
477
475
String [] beanNames = getBeanNamesForTypedStream (requiredType , allowEagerInit );
478
476
if (beanNames .length == 0 ) {
@@ -1690,7 +1688,7 @@ protected String determineHighestPriorityCandidate(Map<String, Object> candidate
1690
1688
if (candidatePriority .equals (highestPriority )) {
1691
1689
throw new NoUniqueBeanDefinitionException (requiredType , candidates .size (),
1692
1690
"Multiple beans found with the same priority ('" + highestPriority +
1693
- "') among candidates: " + candidates .keySet ());
1691
+ "') among candidates: " + candidates .keySet ());
1694
1692
}
1695
1693
else if (candidatePriority < highestPriority ) {
1696
1694
highestPriorityBeanName = candidateBeanName ;
@@ -1776,7 +1774,7 @@ private void raiseNoMatchingBeanFound(
1776
1774
1777
1775
throw new NoSuchBeanDefinitionException (resolvableType ,
1778
1776
"expected at least 1 bean which qualifies as autowire candidate. " +
1779
- "Dependency annotations: " + ObjectUtils .nullSafeToString (descriptor .getAnnotations ()));
1777
+ "Dependency annotations: " + ObjectUtils .nullSafeToString (descriptor .getAnnotations ()));
1780
1778
}
1781
1779
1782
1780
/**
@@ -1821,7 +1819,6 @@ private Optional<?> createOptionalDependency(
1821
1819
public boolean isRequired () {
1822
1820
return false ;
1823
1821
}
1824
-
1825
1822
@ Override
1826
1823
public Object resolveCandidate (String beanName , Class <?> requiredType , BeanFactory beanFactory ) {
1827
1824
return (!ObjectUtils .isEmpty (args ) ? beanFactory .getBean (beanName , args ) :
0 commit comments