Skip to content

Commit

Permalink
fixed PMD issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sterlp committed Jan 2, 2025
1 parent b6f254f commit 7ac1eb7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ default OffsetDateTime retryAt(int executionCount, @Nullable Exception exception
* @author Your Name
*/
@RequiredArgsConstructor
public static class LinearRetryStrategy implements RetryStrategy {
public class LinearRetryStrategy implements RetryStrategy {
private final int maxExecutionCount;
private final TemporalUnit unit;
private final int offset;
Expand All @@ -78,7 +78,7 @@ public OffsetDateTime retryAt(int executionCount, Exception error) {
return OffsetDateTime.now().plus(offset + executionCount, unit);
}
}

/**
* A retry strategy that determines the next retry time by multiplying
* the execution count by a scaling factor and adding the result to the
Expand All @@ -97,7 +97,7 @@ public OffsetDateTime retryAt(int executionCount, Exception error) {
* ({@code maxExecutionCount}) is reached.</p>
*/
@RequiredArgsConstructor
public static class MultiplicativeRetryStrategy implements RetryStrategy {
public class MultiplicativeRetryStrategy implements RetryStrategy {
private final int maxExecutionCount;
private final TemporalUnit unit;
private final int scalingFactor;
Expand Down

0 comments on commit 7ac1eb7

Please sign in to comment.