Prefer Files#createTempDirectory()
MSALReplaces 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. NoGuavaCreateTempDirmod run . --recipe= org. openrewrite. java. migrate. guava. NoGuavaCreateTempDirInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.