|
|
@ -537,10 +537,10 @@ public class AutowiredAnnotationBeanPostProcessor implements SmartInstantiationA |
|
|
|
* @param ann the Autowired annotation |
|
|
|
* @param ann the Autowired annotation |
|
|
|
* @return whether the annotation indicates that a dependency is required |
|
|
|
* @return whether the annotation indicates that a dependency is required |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@SuppressWarnings({"deprecation", "cast"}) |
|
|
|
@SuppressWarnings("deprecation") |
|
|
|
protected boolean determineRequiredStatus(MergedAnnotation<?> ann) { |
|
|
|
protected boolean determineRequiredStatus(MergedAnnotation<?> ann) { |
|
|
|
return determineRequiredStatus( |
|
|
|
return determineRequiredStatus(ann.<AnnotationAttributes> asMap( |
|
|
|
ann.asMap(mergedAnnotation -> new AnnotationAttributes(mergedAnnotation.getType()))); |
|
|
|
mergedAnnotation -> new AnnotationAttributes(mergedAnnotation.getType()))); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|