Prefer Files#createTempDirectory()

MSAL

Replaces Guava Files#createTempDir() with Java Files#createTempDirectory(..) where a throws clause or catch for IOException, Exception or Throwable handles the IOException it throws. A call in a lambda, or in a class body outside a method, stays.

org.openrewrite.java.migrate.guava.NoGuavaCreateTempDir
mod run . --recipe=org.openrewrite.java.migrate.guava.NoGuavaCreateTempDir

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