Skip to content

Commit

Permalink
ArC: skip warning about invalid startup for producer methods
Browse files Browse the repository at this point in the history
- resolves quarkusio#40083
  • Loading branch information
mkouba committed Apr 16, 2024
1 parent f56b5c3 commit 2c0d16b
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 2c0d16b

Please sign in to comment.