Skip to content

Commit 9ae7775

Browse files
authored
Fix typo in whatsnew.adoc and in integration tests (#5206)
Signed-off-by: wocks1123 <[email protected]>
1 parent 2cc7890 commit 9ae7775

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,16 +347,16 @@ public Step step(JobRepository jobRepository, JdbcTransactionManager transaction
347347
static class FaultTolerantChunkOrientedStepConfiguration {
348348

349349
@Bean
350-
public Step faulTolerantChunkOrientedStep(JobRepository jobRepository,
350+
public Step faultTolerantChunkOrientedStep(JobRepository jobRepository,
351351
JdbcTransactionManager transactionManager, ItemReader<Person> itemReader,
352352
ItemProcessor<Person, Person> itemProcessor, ItemWriter<Person> itemWriter) {
353353
// retry policy configuration
354354
int retryLimit = 3;
355-
Set<Class<? extends Throwable>> nonRetrybaleExceptions = Set.of(FlatFileParseException.class,
355+
Set<Class<? extends Throwable>> nonRetryableExceptions = Set.of(FlatFileParseException.class,
356356
DataIntegrityViolationException.class);
357357
RetryPolicy retryPolicy = RetryPolicy.builder()
358358
.maxRetries(retryLimit)
359-
.excludes(nonRetrybaleExceptions)
359+
.excludes(nonRetryableExceptions)
360360
.build();
361361

362362
// skip policy configuration

spring-batch-docs/modules/ROOT/pages/whatsnew.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,14 @@ Here is a quick example of how to use the retry and skip features with the new `
116116
[source, java]
117117
----
118118
@Bean
119-
public Step faulTolerantChunkOrientedStep(JobRepository jobRepository, ItemReader<Person> itemReader, ItemWriter<Person> itemWriter) {
119+
public Step faultTolerantChunkOrientedStep(JobRepository jobRepository, ItemReader<Person> itemReader, ItemWriter<Person> itemWriter) {
120120
121121
// retry policy configuration
122122
int maxRetries = 10;
123-
var retrybaleExceptions = Set.of(TransientException.class);
123+
var retryableExceptions = Set.of(TransientException.class);
124124
RetryPolicy retryPolicy = RetryPolicy.builder()
125125
.maxRetries(maxRetries)
126-
.includes(retrybaleExceptions)
126+
.includes(retryableExceptions)
127127
.build();
128128
129129
// skip policy configuration

0 commit comments

Comments
 (0)