Skip to content

Commit

Permalink
Fix incorrect code example in documentation
Browse files Browse the repository at this point in the history
Backported from 6334fbf

Issue #4550
  • Loading branch information
fmbenhassine committed Mar 8, 2024
1 parent c70d40d commit 8ca9c6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spring-batch-docs/src/main/asciidoc/step.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ public class FileDeletingTasklet implements Tasklet, InitializingBean {
public RepeatStatus execute(StepContribution contribution,
ChunkContext chunkContext) throws Exception {
File dir = directory.getFile();
Assert.state(dir.isDirectory());
Assert.state(dir.isDirectory(), "The resource must be a directory");
File[] files = dir.listFiles();
for (int i = 0; i < files.length; i++) {
Expand All @@ -1391,7 +1391,7 @@ public class FileDeletingTasklet implements Tasklet, InitializingBean {
}
public void afterPropertiesSet() throws Exception {
Assert.state(directory != null, "directory must be set");
Assert.state(directory != null, "Directory must be set");
}
}
----
Expand Down

0 comments on commit 8ca9c6e

Please sign in to comment.