From 75e3f44a7b7d68fdfafd34f959b8511425d702d6 Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Wed, 10 Dec 2025 16:45:43 +0100 Subject: [PATCH] Update Javadoc due to changes in retry support See gh-35940 --- .../org/springframework/core/retry/RetryException.java | 7 +++---- .../java/org/springframework/core/retry/RetryListener.java | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/core/retry/RetryException.java b/spring-core/src/main/java/org/springframework/core/retry/RetryException.java index 794960e9395..6f37054bb62 100644 --- a/spring-core/src/main/java/org/springframework/core/retry/RetryException.java +++ b/spring-core/src/main/java/org/springframework/core/retry/RetryException.java @@ -70,9 +70,7 @@ public class RetryException extends Exception implements RetryState { /** - * Get the last exception thrown by the {@link Retryable} operation, or an - * {@link InterruptedException} thrown while sleeping for the current - * {@code BackOff} duration. + * Get the last exception thrown by the {@link Retryable} operation. */ @Override public final Throwable getCause() { @@ -102,7 +100,8 @@ public class RetryException extends Exception implements RetryState { } /** - * Return the exception from the last invocation (also exposed as a cause). + * Return the exception from the last invocation (also exposed as the + * {@linkplain #getCause() cause}). * @since 7.0.2 */ @Override diff --git a/spring-core/src/main/java/org/springframework/core/retry/RetryListener.java b/spring-core/src/main/java/org/springframework/core/retry/RetryListener.java index b32a8d91c8a..863bc28fe70 100644 --- a/spring-core/src/main/java/org/springframework/core/retry/RetryListener.java +++ b/spring-core/src/main/java/org/springframework/core/retry/RetryListener.java @@ -99,9 +99,9 @@ public interface RetryListener { * Called if the {@link RetryPolicy} is interrupted between retry attempts. * @param retryPolicy the {@code RetryPolicy} * @param retryable the {@link Retryable} operation - * @param exception the resulting {@link RetryException}, with an - * {@link InterruptedException} as the cause and any exceptions from previous - * invocations of the {@code Retryable} operation as suppressed exceptions + * @param exception the resulting {@link RetryException}, with the last + * exception thrown by the {@code Retryable} operation as the cause and any + * exceptions from previous attempts as suppressed exceptions * @see RetryException#getExceptions() * @see RetryException#getRetryCount() */