Migrate Date to LocalDateTime for Spring Batch timestamp methods

MSAL

In Spring Batch 5.0, StepExecution and JobExecution timestamp methods (getStartTime(), getEndTime(), getCreateTime(), getLastUpdated()) return java.time.LocalDateTime instead of java.util.Date. This recipe updates variable declarations accordingly.

org.openrewrite.java.spring.batch.MigrateStepExecutionTimestampTypes
mod run . --recipe=org.openrewrite.java.spring.batch.MigrateStepExecutionTimestampTypes

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.