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 dc9a8ee commit be853d4Copy full SHA for be853d4
spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java
@@ -688,6 +688,16 @@ public AnnotatedElementAdapter(Annotation[] annotations) {
688
this.annotations = annotations;
689
}
690
691
+ @Override
692
+ public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) {
693
+ for (Annotation annotation : getAnnotations()) {
694
+ if (annotation.annotationType() == annotationClass) {
695
+ return true;
696
+ }
697
698
+ return false;
699
700
+
701
@Override
702
@SuppressWarnings("unchecked")
703
public <T extends Annotation> T getAnnotation(Class<T> annotationClass) {
0 commit comments