Skip to content

Commit b480895

Browse files
committed
Fixed a bug where the annotations were not read correctly
(6)
1 parent b539393 commit b480895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

springfox-grails/src/main/java/springfox/documentation/grails/GrailsRequestHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public Class<?> declaringClass() {
4343

4444
@Override
4545
public boolean isAnnotatedWith(Class<? extends Annotation> annotation) {
46-
return AnnotationUtils.findAnnotation(declaringClass(), annotation) != null;
46+
return findAnnotation(annotation).isPresent();
4747
}
4848

4949
@Override

0 commit comments

Comments
 (0)