Skip to content

Commit

Permalink
VertxProcessor - skip synthetic methods annotated with ConsumeEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
mkouba committed Dec 1, 2022
1 parent c28c014 commit b1664aa
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ void collectEventConsumers(
AnnotationStore annotationStore = beanRegistrationPhase.getContext().get(BuildExtension.Key.ANNOTATION_STORE);
for (BeanInfo bean : beanRegistrationPhase.getContext().beans().classBeans()) {
for (MethodInfo method : bean.getTarget().get().asClass().methods()) {
if (method.isSynthetic()) {
continue;
}
AnnotationInstance consumeEvent = annotationStore.getAnnotation(method, CONSUME_EVENT);
if (consumeEvent != null) {
// Validate method params and return type
Expand Down

0 comments on commit b1664aa

Please sign in to comment.