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 #40083

(cherry picked from commit 2c0d16b)
  • Loading branch information
mkouba authored and gsmet committed Apr 17, 2024
1 parent 3023a1f commit 0cf9684
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 0cf9684

Please sign in to comment.