spring-cloud-commons icon indicating copy to clipboard operation
spring-cloud-commons copied to clipboard

Improve readability of method "isRetryException"

Open stefanbirkner opened this issue 4 years ago • 0 comments

The "isRetryExhausted" check only depends on the throwable itself. The new code makes this more clear because the check is no longer part of anyMatch's lambda expression. I also extracted the method "isInstanceOfRetryType" because it makes it obvious that we do the same check on the throwable itself and its cause.

stefanbirkner avatar Jan 06 '22 12:01 stefanbirkner