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 @@ -750,7 +750,7 @@ private static AnnotatedElementAdapter from(@Nullable Annotation[] annotations)
750
750
751
751
@ Override
752
752
public boolean isAnnotationPresent (Class <? extends Annotation > annotationClass ) {
753
- for (Annotation annotation : getAnnotations () ) {
753
+ for (Annotation annotation : this . annotations ) {
754
754
if (annotation .annotationType () == annotationClass ) {
755
755
return true ;
756
756
}
@@ -762,7 +762,7 @@ public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
762
762
@ Nullable
763
763
@ SuppressWarnings ("unchecked" )
764
764
public <T extends Annotation > T getAnnotation (Class <T > annotationClass ) {
765
- for (Annotation annotation : getAnnotations () ) {
765
+ for (Annotation annotation : this . annotations ) {
766
766
if (annotation .annotationType () == annotationClass ) {
767
767
return (T ) annotation ;
768
768
}
You can’t perform that action at this time.
0 commit comments