Skip to content

Commit 41fe131

Browse files
committed
Fix method rename in the latest snapshots of Spring Framework
Related to spring-projects/spring-framework#35772
1 parent e0664f2 commit 41fe131

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/ChunkOrientedStepBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ public ChunkOrientedStep<I, O> build() {
410410
if (this.retryPolicy == null) {
411411
if (!this.retryableExceptions.isEmpty() || this.retryLimit > 0) {
412412
this.retryPolicy = RetryPolicy.builder()
413-
.maxAttempts(this.retryLimit)
413+
.maxRetries(this.retryLimit)
414414
.includes(this.retryableExceptions)
415415
.build();
416416
}

spring-batch-core/src/test/java/org/springframework/batch/core/step/item/ChunkOrientedStepIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ public Step faulTolerantChunkOrientedStep(JobRepository jobRepository,
446446
Set<Class<? extends Throwable>> nonRetrybaleExceptions = Set.of(FlatFileParseException.class,
447447
DataIntegrityViolationException.class);
448448
RetryPolicy retryPolicy = RetryPolicy.builder()
449-
.maxAttempts(retryLimit)
449+
.maxRetries(retryLimit)
450450
.excludes(nonRetrybaleExceptions)
451451
.build();
452452

@@ -481,7 +481,7 @@ public Step concurrentFaulTolerantChunkOrientedStep(JobRepository jobRepository,
481481
Set<Class<? extends Throwable>> nonRetrybaleExceptions = Set.of(FlatFileParseException.class,
482482
DataIntegrityViolationException.class);
483483
RetryPolicy retryPolicy = RetryPolicy.builder()
484-
.maxAttempts(retryLimit)
484+
.maxRetries(retryLimit)
485485
.excludes(nonRetrybaleExceptions)
486486
.build();
487487

0 commit comments

Comments
 (0)