File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spring-batch-docs/src/main/asciidoc Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1373,7 +1373,7 @@ public class FileDeletingTasklet implements Tasklet, InitializingBean {
1373
1373
public RepeatStatus execute(StepContribution contribution,
1374
1374
ChunkContext chunkContext) throws Exception {
1375
1375
File dir = directory.getFile();
1376
- Assert.state(dir.isDirectory());
1376
+ Assert.state(dir.isDirectory(), "The resource must be a directory" );
1377
1377
1378
1378
File[] files = dir.listFiles();
1379
1379
for (int i = 0; i < files.length; i++) {
@@ -1391,7 +1391,7 @@ public class FileDeletingTasklet implements Tasklet, InitializingBean {
1391
1391
}
1392
1392
1393
1393
public void afterPropertiesSet() throws Exception {
1394
- Assert.state(directory != null, "directory must be set");
1394
+ Assert.state(directory != null, "Directory must be set");
1395
1395
}
1396
1396
}
1397
1397
----
You can’t perform that action at this time.
0 commit comments