Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure AvailabilityChangeEvent carries generics
Update `AvailabilityChangeEvent` to be a `PayloadEvent` and ensure that the `getResolvableType` method returns a generic compatible result. Prior to this commit, a ClassCastExeption would be thrown if the following event listener was declared: @eventlistener void onEvent(AvailabilityChangeEvent<ReadinessState> event) { ... } Closes gh-21898
- Loading branch information
Showing
2 changed files
with
82 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters