Skip to content

Commit

Permalink
Merge pull request quarkusio#40096 from mkouba/issue-40083
Browse files Browse the repository at this point in the history
ArC: skip warning about invalid startup for producer methods
  • Loading branch information
gsmet authored Apr 16, 2024
2 parents f0e6a40 + 2c0d16b commit 32f1a21
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,12 @@ void registerStartupObservers(ObserverRegistrationPhaseBuildItem observerRegistr
&& !annotationStore.hasAnnotation(method, DotNames.PRODUCES)) {
startupMethods.add(method);
} else {
LOG.warnf("Ignored an invalid @Startup method declared on %s: %s", method.declaringClass().name(),
method);
if (!annotationStore.hasAnnotation(method, DotNames.PRODUCES)) {
// Producer methods annotated with @Startup are valid and processed above
LOG.warnf("Ignored an invalid @Startup method declared on %s: %s",
method.declaringClass().name(),
method);
}
}
}
}
Expand Down

0 comments on commit 32f1a21

Please sign in to comment.