Allow AutowiredAnnotationBeanPostProcessor to compile on JDK 11
This commit is contained in:
		
							parent
							
								
									038b88e2a1
								
							
						
					
					
						commit
						669b05dc1d
					
				| 
						 | 
				
			
			@ -537,10 +537,10 @@ public class AutowiredAnnotationBeanPostProcessor implements SmartInstantiationA
 | 
			
		|||
	 * @param ann the Autowired annotation
 | 
			
		||||
	 * @return whether the annotation indicates that a dependency is required
 | 
			
		||||
	 */
 | 
			
		||||
	@SuppressWarnings({"deprecation", "cast"})
 | 
			
		||||
	@SuppressWarnings("deprecation")
 | 
			
		||||
	protected boolean determineRequiredStatus(MergedAnnotation<?> ann) {
 | 
			
		||||
		return determineRequiredStatus(
 | 
			
		||||
				ann.asMap(mergedAnnotation -> new AnnotationAttributes(mergedAnnotation.getType())));
 | 
			
		||||
		return determineRequiredStatus(ann.<AnnotationAttributes> asMap(
 | 
			
		||||
			mergedAnnotation -> new AnnotationAttributes(mergedAnnotation.getType())));
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue