Flag deprecated ChunkListener callbacks for manual migration to ChunkListener<I, O>
ProprietarySpring Batch 6 made ChunkListener generic (ChunkListener<I, O>) and deprecated the three ChunkContext-based callbacks for removal in Spring Batch 7. Their replacements accept the chunk of items (beforeChunk(Chunk<I>), afterChunk(Chunk<O>), onChunkError(Exception, Chunk<O>)), which is a disjoint API from ChunkContext and fires at a different point in the chunk lifecycle, so the change cannot be performed mechanically. This recipe adds a comment to each deprecated callback naming its exact replacement so the remaining body changes can be done by hand. It does not add type parameters or rewrite method bodies.
io. moderne. java. spring. batch. FlagChunkListenerForManualMigrationmod run . --recipe= io. moderne. java. spring. batch. FlagChunkListenerForManualMigrationInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.