Skip to content

Commit

Permalink
fix support for executable methods using reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Feb 17, 2023
1 parent e114ba0 commit 6e3f273
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,8 @@ private void addExecutableMethods(ClassElement ce, BeanIntrospectionWriter write
});
}
ElementQuery<MethodElement> query = ElementQuery.of(MethodElement.class)
.onlyAccessible()
.modifiers((modifiers) -> !modifiers.contains(ElementModifier.STATIC))
.annotated((am) -> am.hasStereotype(Executable.class));
.modifiers(modifiers -> !modifiers.contains(ElementModifier.STATIC))
.annotated(am -> am.hasStereotype(Executable.class));
List<MethodElement> executableMethods = ce.getEnclosedElements(query);
for (MethodElement executableMethod : executableMethods) {
if (added.contains(executableMethod)) {
Expand Down

0 comments on commit 6e3f273

Please sign in to comment.