From 67996bee664be6019e520a21c4c0e591513efbfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= <148013+szpak@users.noreply.github.com> Date: Wed, 24 Jul 2024 23:33:55 +0200 Subject: [PATCH] Rephrase Javadoc for RetryContext.getLastThrowable() --- src/main/java/org/springframework/retry/RetryContext.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/springframework/retry/RetryContext.java b/src/main/java/org/springframework/retry/RetryContext.java index e367a4af..2173fad9 100644 --- a/src/main/java/org/springframework/retry/RetryContext.java +++ b/src/main/java/org/springframework/retry/RetryContext.java @@ -99,8 +99,8 @@ public interface RetryContext extends AttributeAccessor { /** * Accessor for the exception object that caused the current retry. * @return the last exception that caused a retry, or possibly null. It will be null - * if this is the first attempt, but also if the enclosing policy decides not to - * provide it (e.g. because of concerns about memory usage). + * if this is the first attempt and it finishes successfully, but also if the enclosing + * policy decides not to provide it (e.g. because of concerns about memory usage). */ @Nullable Throwable getLastThrowable();