Using @QuarkusMain in Kotlin produces warnings on startup #26271
-
I'm following the "Application Initialization and Termination" guide's instructions on how to add a custom startup method to a Quarkus application. The guide is written for Java but I'm using Kotlin; here's the code I've written thus far:
The following item now appears in my log when the Quarkus application starts up:
Are there any changes I can/should make to my code? The message doesn't really give me much to go on... my code doesn't declare any private member, and as far as I know Kotlin doesn't support making anything package-private through the use of visibility keywords. I also don't know what the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
/cc @evanchooly |
Beta Was this translation helpful? Give feedback.
-
Through the power of trial and error, I found a Kotlin code solution that does not produce the warning:
And this seems to be a way to declare a code block like the second one mentioned in the guide, but in Kotlin:
|
Beta Was this translation helpful? Give feedback.
-
In your first attempt, you were using a top level |
Beta Was this translation helpful? Give feedback.
Through the power of trial and error, I found a Kotlin code solution that does not produce the warning:
And this seems to be a way to declare a code block like the second one mentioned in the guide, but in Kotlin: