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 @@ -764,7 +764,7 @@ private static AnnotatedElementAdapter from(@Nullable Annotation[] annotations)
764
764
765
765
@ Override
766
766
public boolean isAnnotationPresent (Class <? extends Annotation > annotationClass ) {
767
- for (Annotation annotation : getAnnotations () ) {
767
+ for (Annotation annotation : this . annotations ) {
768
768
if (annotation .annotationType () == annotationClass ) {
769
769
return true ;
770
770
}
@@ -776,7 +776,7 @@ public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
776
776
@ Nullable
777
777
@ SuppressWarnings ("unchecked" )
778
778
public <T extends Annotation > T getAnnotation (Class <T > annotationClass ) {
779
- for (Annotation annotation : getAnnotations () ) {
779
+ for (Annotation annotation : this . annotations ) {
780
780
if (annotation .annotationType () == annotationClass ) {
781
781
return (T ) annotation ;
782
782
}
You can’t perform that action at this time.
0 commit comments