Skip to content

Commit

Permalink
Fix incorrect code example in documentation
Browse files Browse the repository at this point in the history
Issue #4550
  • Loading branch information
chldppwls12 authored and fmbenhassine committed Mar 8, 2024
1 parent 0d06a7c commit 2c0bddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spring-batch-docs/modules/ROOT/pages/step/tasklet.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,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 @@ -140,7 +140,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 2c0bddc

Please sign in to comment.