GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
public final <T> T execute(RetryCallback<T> retryCallback) throws Exception
should be changed to
public final <T, E extends Exception> T execute(RetryCallback<T, E> retryCallback) throws E
This would allow to use RuntimeException as type argument and so not forcing checked exceptions to be handled.
It's a bit late for that I think (would break backwards compatibility), and I'm not sure it would be easy anyway. If you have a proposed change, make sure it works with pre-compiled code against an older spring-retry.