File tree 1 file changed +2
-2
lines changed
spring-core/src/main/java/org/springframework/core/convert
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -751,7 +751,7 @@ private static AnnotatedElementAdapter from(@Nullable Annotation[] annotations)
751
751
752
752
@ Override
753
753
public boolean isAnnotationPresent (Class <? extends Annotation > annotationClass ) {
754
- for (Annotation annotation : getAnnotations () ) {
754
+ for (Annotation annotation : this . annotations ) {
755
755
if (annotation .annotationType () == annotationClass ) {
756
756
return true ;
757
757
}
@@ -763,7 +763,7 @@ public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
763
763
@ Nullable
764
764
@ SuppressWarnings ("unchecked" )
765
765
public <T extends Annotation > T getAnnotation (Class <T > annotationClass ) {
766
- for (Annotation annotation : getAnnotations () ) {
766
+ for (Annotation annotation : this . annotations ) {
767
767
if (annotation .annotationType () == annotationClass ) {
768
768
return (T ) annotation ;
769
769
}
You can’t perform that action at this time.
0 commit comments