aldettinger commented on code in PR #4677:
URL: https://github.com/apache/camel-quarkus/pull/4677#discussion_r1145189132
##########
extensions/jira/deployment/src/main/java/org/apache/camel/quarkus/component/jira/deployment/JiraProcessor.java:
##########
@@ -55,8 +58,27 @@ NativeImageResourceBuildItem nativeImageResources() {
}
@BuildStep
- ReflectiveClassBuildItem registerForReflection() {
- // Required by
org.apache.camel.component.jira.consumer.WatchUpdatesConsumer
- return new ReflectiveClassBuildItem(true, false,
Issue.class.getName());
+ ReflectiveClassBuildItem
registerJiraClassesForReflection(CombinedIndexBuildItem combinedIndex) {
+ IndexView index = combinedIndex.getIndex();
+ String[] modelClasses = index.getKnownClasses().stream()
+ .map(ci -> ci.name().toString())
+ .filter(n -> n.startsWith(JIRA_MODEL_PACKAGE))
+ .sorted()
Review Comment:
So maybe it could be removed if we consider it's better for build time and
readibility.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]