Allow AutowiredAnnotationBeanPostProcessor to compile on JDK 11

This commit is contained in:
Sam Brannen 2022-02-08 14:04:11 +01:00
parent 038b88e2a1
commit 669b05dc1d
1 changed files with 3 additions and 3 deletions

View File

@ -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())));
} }
/** /**