Skip to content

Commit d50c04b

Browse files
committed
Add deprecation warning log in ChunkOrientedTasklet
1 parent 136bc8a commit d50c04b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/step/item/ChunkOrientedTasklet.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ public class ChunkOrientedTasklet<I> implements Tasklet {
5252
private static final Log logger = LogFactory.getLog(ChunkOrientedTasklet.class);
5353

5454
public ChunkOrientedTasklet(ChunkProvider<I> chunkProvider, ChunkProcessor<I> chunkProcessor) {
55+
logger.info(
56+
"DEPRECATION NOTE: The legacy implementation of the chunk-oriented processing model is deprecated as of Spring Batch 6.0 and will be removed in version 7.0.");
5557
this.chunkProvider = chunkProvider;
5658
this.chunkProcessor = chunkProcessor;
5759
}

0 commit comments

Comments
 (0)