Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default implementations to RetryListener #326

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

hpoettker
Copy link
Contributor

With Spring Retry 2.0.0, the baseline was lifted from Java 6 to Java 17, which allows to now use default implementations in interfaces.

The only purpose of RetryListenerSupport is to provide default implementations for RetryListener. As such support implementations are no longer required, this PR deprecates RetryListenerSupport and adds its default implementations to RetryListener.

Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, add your name to the @author list of all the affected classes.
Also update their copyright to the current 2022.

There is also a mentioning of RetryListenerSupport in the README.
Consider, please, revise that docs respectively.
(Not sure if we should mention its deprecation: just remove will be enough)

*/
@Deprecated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since="2.0.1", forRemoval=true ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@hpoettker hpoettker force-pushed the retry-listener branch 2 times, most recently from de20035 to eecec51 Compare November 28, 2022 21:31
@hpoettker
Copy link
Contributor Author

hpoettker commented Nov 28, 2022

@artembilan Thanks for the feedback!

The year in the headers is already 2022 in almost all affected classes. But I've added the @author tags. The line from the README is also removed.

@artembilan artembilan merged commit 8730729 into spring-projects:main Nov 28, 2022
@artembilan artembilan added this to the 2.0.1 milestone Nov 28, 2022
@artembilan
Copy link
Member

@hpoettker ,

thank you for contribution; looking forward for more!

@hpoettker hpoettker deleted the retry-listener branch November 28, 2022 22:44
artembilan added a commit to spring-projects/spring-integration that referenced this pull request Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants