From 67549212be05966cd896c3b1f8ff8e7fa6ba0f90 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Wed, 25 Oct 2023 13:58:45 -0400 Subject: [PATCH] GH-391: Backoff Annotation: Polish random javadoc Resolves https://github.com/spring-projects/spring-retry/issues/391 --- .../retry/annotation/Backoff.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/springframework/retry/annotation/Backoff.java b/src/main/java/org/springframework/retry/annotation/Backoff.java index 06c366f9..8bdf55d3 100644 --- a/src/main/java/org/springframework/retry/annotation/Backoff.java +++ b/src/main/java/org/springframework/retry/annotation/Backoff.java @@ -115,19 +115,20 @@ String multiplierExpression() default ""; /** - * In the exponential case ({@link #multiplier()} > 0) set this to true to have the - * backoff delays randomized with jitter, so that the maximum delay is multiplier - * times the previous delay and the distribution is uniform between the two values. + * In the exponential case ({@link #multiplier()} > 0 and not equal to 1.0) set + * this to true to have the backoff delays randomized with jitter, so that the maximum + * delay is multiplier times the previous delay and the distribution is uniform + * between the two values. * @return the flag to signal randomization is required (default false) */ boolean random() default false; /** - * Evaluates to a value. In the exponential case ({@link #multiplier()} > 0) set - * this to true to have the backoff delays randomized, so that the maximum delay is - * multiplier times the previous delay and the distribution is uniform between the two - * values. Use {@code #{...}} for one-time evaluation during initialization, omit the - * delimiters for evaluation at runtime. + * Evaluates to a value. In the exponential case ({@link #multiplier()} > 0 and not + * equal to 1.0) set this to true to have the backoff delays randomized, so that the + * maximum delay is multiplier times the previous delay and the distribution is + * uniform between the two values. Use {@code #{...}} for one-time evaluation during + * initialization, omit the delimiters for evaluation at runtime. * @return the flag to signal randomization is required (default false) */ String randomExpression() default "";