Accept zero for RetryPolicy.Builder.delay()

This aligns the programmatic RetryPolicy configuration option with the
delay support in @⁠Retryable.

See gh-35110
This commit is contained in:
Sam Brannen
2025-07-01 17:40:15 +02:00
parent c9078bfe14
commit cc31bf3c33
5 changed files with 25 additions and 25 deletions
@@ -111,7 +111,7 @@ public @interface Retryable {
* this serves as the initial delay to multiply from.
* <p>The time unit is milliseconds by default but can be overridden via
* {@link #timeUnit}.
* <p>The default is 1000.
* <p>Must be greater than or equal to zero. The default is 1000.
* @see #jitter()
* @see #multiplier()
* @see #maxDelay()