-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
I find myself in a situation where creating a class to handle GitHub events results in multiple inspection warnings in IntelliJ IDEA.
Take for example this screenshot:
This works perfectly. Quarkus wires up PullRequestMilestoneCheck and injects the constructor dependencies, and this GitHub extension does its job.
However, the class and all its methods are marked as unused, there is no IDE navigation to the injected beans, and it is unclear which bean scope the extension assigns to the class.
This could be improved by:
- mandating the container class be annotated with
@Singletonor@ApplicationScoped. Transitively avoids an explicitopen. - moving event annotations to the method level
@Opened
@Reopened
@Edited
@Synchronize
fun onPullRequestEvent(payload: GHEventPayload.PullRequest) {
//
}Metadata
Metadata
Assignees
Labels
No labels

