Use Process#waitFor(Duration)
MSALUse Process#waitFor(Duration) instead of Process#waitFor(long, TimeUnit) in Java 25 or higher.
org. openrewrite. java. migrate. lang. MigrateProcessWaitForDurationmod run . --recipe= org. openrewrite. java. migrate. lang. MigrateProcessWaitForDurationInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.