From e637911a8af4bbef372824cb9e13e3b8fa67426b Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Wed, 5 May 2021 17:16:13 -0400 Subject: [PATCH] SimpleRetryPolicy Javadoc Polishing --- .../retry/policy/SimpleRetryPolicy.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/springframework/retry/policy/SimpleRetryPolicy.java b/src/main/java/org/springframework/retry/policy/SimpleRetryPolicy.java index 64780ba..9515d51 100644 --- a/src/main/java/org/springframework/retry/policy/SimpleRetryPolicy.java +++ b/src/main/java/org/springframework/retry/policy/SimpleRetryPolicy.java @@ -94,8 +94,8 @@ public class SimpleRetryPolicy implements RetryPolicy { /** * Create a {@link SimpleRetryPolicy} with the specified number of retry attempts. If - * traverseCauses is true, the exception causes will be traversed until a match is - * found. + * traverseCauses is true, the exception causes will be traversed until a match or the + * root cause is found. * @param maxAttempts the maximum number of attempts * @param retryableExceptions the map of exceptions that are retryable based on the * map value (true/false). @@ -109,9 +109,9 @@ public class SimpleRetryPolicy implements RetryPolicy { /** * Create a {@link SimpleRetryPolicy} with the specified number of retry attempts. If - * traverseCauses is true, the exception causes will be traversed until a match is - * found. The default value indicates whether to retry or not for exceptions (or super - * classes) are not found in the map. + * traverseCauses is true, the exception causes will be traversed until a match or the + * root cause is found. The default value indicates whether to retry or not for + * exceptions (or super classes thereof) that are not found in the map. * @param maxAttempts the maximum number of attempts * @param retryableExceptions the map of exceptions that are retryable based on the * map value (true/false).