We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56bb20d commit 17863dfCopy full SHA for 17863df
spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java
@@ -692,6 +692,16 @@ public AnnotatedElementAdapter(Annotation[] annotations) {
692
this.annotations = annotations;
693
}
694
695
+ @Override
696
+ public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) {
697
+ for (Annotation annotation : getAnnotations()) {
698
+ if (annotation.annotationType() == annotationClass) {
699
+ return true;
700
+ }
701
702
+ return false;
703
704
+
705
@Override
706
@SuppressWarnings("unchecked")
707
public <T extends Annotation> T getAnnotation(Class<T> annotationClass) {
0 commit comments