Use DiskSpaceHealthIndicator(File, DataSize)

MSAL

DiskSpaceHealthIndicator(File, long) was deprecated in Spring Boot 2.1 for removal in 2.2.

org.openrewrite.java.spring.boot2.MigrateDiskSpaceHealthIndicatorConstructor
mod run . --recipe=org.openrewrite.java.spring.boot2.MigrateDiskSpaceHealthIndicatorConstructor

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