Skip to content

Commit ccebaa6

Browse files
committed
Merge branch '6.1.x'
2 parents ae5cff1 + 42a4f28 commit ccebaa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ private static AnnotatedElementAdapter from(@Nullable Annotation[] annotations)
764764

765765
@Override
766766
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) {
767-
for (Annotation annotation : getAnnotations()) {
767+
for (Annotation annotation : this.annotations) {
768768
if (annotation.annotationType() == annotationClass) {
769769
return true;
770770
}
@@ -776,7 +776,7 @@ public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
776776
@Nullable
777777
@SuppressWarnings("unchecked")
778778
public <T extends Annotation> T getAnnotation(Class<T> annotationClass) {
779-
for (Annotation annotation : getAnnotations()) {
779+
for (Annotation annotation : this.annotations) {
780780
if (annotation.annotationType() == annotationClass) {
781781
return (T) annotation;
782782
}

0 commit comments

Comments
 (0)