Fix ListableBeanFactory#findAnnotationOnBean extension return type

Closes gh-26908
This commit is contained in:
danthonywalker
2022-03-15 16:59:40 +01:00
committed by Sébastien Deleuze
parent 9fbf5dc945
commit 50771237cc
2 changed files with 6 additions and 2 deletions

View File

@@ -64,6 +64,6 @@ inline fun <reified T : Annotation> ListableBeanFactory.getBeansWithAnnotation()
* @author Sebastien Deleuze
* @since 5.0
*/
inline fun <reified T : Annotation> ListableBeanFactory.findAnnotationOnBean(beanName:String): Annotation? =
inline fun <reified T : Annotation> ListableBeanFactory.findAnnotationOnBean(beanName:String): T? =
findAnnotationOnBean(beanName, T::class.java)