Replace Paths.get with Path.of
MSALThe java.nio.file.Paths.get method was introduced in Java SE 7. The java.nio.file.Path.of method was introduced in Java SE 11. This recipe replaces all usages of Paths.get with Path.of for consistency.
org. openrewrite. java. migrate. nio. file. PathsGetToPathOfmod run . --recipe= org. openrewrite. java. migrate. nio. file. PathsGetToPathOfInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.