Skip to content

Commit 7ac1eb7

Browse files
committed
fixed PMD issue
1 parent b6f254f commit 7ac1eb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/main/java/org/sterl/spring/persistent_tasks/api/RetryStrategy.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ default OffsetDateTime retryAt(int executionCount, @Nullable Exception exception
6464
* @author Your Name
6565
*/
6666
@RequiredArgsConstructor
67-
public static class LinearRetryStrategy implements RetryStrategy {
67+
public class LinearRetryStrategy implements RetryStrategy {
6868
private final int maxExecutionCount;
6969
private final TemporalUnit unit;
7070
private final int offset;
@@ -78,7 +78,7 @@ public OffsetDateTime retryAt(int executionCount, Exception error) {
7878
return OffsetDateTime.now().plus(offset + executionCount, unit);
7979
}
8080
}
81-
81+
8282
/**
8383
* A retry strategy that determines the next retry time by multiplying
8484
* the execution count by a scaling factor and adding the result to the
@@ -97,7 +97,7 @@ public OffsetDateTime retryAt(int executionCount, Exception error) {
9797
* ({@code maxExecutionCount}) is reached.</p>
9898
*/
9999
@RequiredArgsConstructor
100-
public static class MultiplicativeRetryStrategy implements RetryStrategy {
100+
public class MultiplicativeRetryStrategy implements RetryStrategy {
101101
private final int maxExecutionCount;
102102
private final TemporalUnit unit;
103103
private final int scalingFactor;

0 commit comments

Comments
 (0)