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 @@ -759,7 +759,7 @@ private static AnnotatedElementAdapter from(@Nullable Annotation[] annotations)
759
759
760
760
@ Override
761
761
public boolean isAnnotationPresent (Class <? extends Annotation > annotationClass ) {
762
- for (Annotation annotation : getAnnotations () ) {
762
+ for (Annotation annotation : this . annotations ) {
763
763
if (annotation .annotationType () == annotationClass ) {
764
764
return true ;
765
765
}
@@ -771,7 +771,7 @@ public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
771
771
@ Nullable
772
772
@ SuppressWarnings ("unchecked" )
773
773
public <T extends Annotation > T getAnnotation (Class <T > annotationClass ) {
774
- for (Annotation annotation : getAnnotations () ) {
774
+ for (Annotation annotation : this . annotations ) {
775
775
if (annotation .annotationType () == annotationClass ) {
776
776
return (T ) annotation ;
777
777
}
You can’t perform that action at this time.
0 commit comments