Skip to content

Commit 20a3000

Browse files
committed
fixes #216
1 parent bb07987 commit 20a3000

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/unquietcode/tools/flapi/annotations/AnnotationIntrospector.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,17 @@ public static DescriptorOutline createDescriptor(Class<?> clazz) {
8181

8282
// discover methods and set them on the blocks
8383
AnnotationIntrospector introspector = new AnnotationIntrospector();
84+
85+
// class
8486
boolean found = introspector.handleClass(descriptor, clazz);
8587

88+
// interfaces (interface extensions are handled automatically by Spring)
89+
if (!clazz.isInterface()) {
90+
for (Class<?> intf : clazz.getInterfaces()) {
91+
found |= introspector.handleClass(descriptor, intf);
92+
}
93+
}
94+
8695
if (found) {
8796
return descriptor;
8897
}

0 commit comments

Comments
 (0)