Change javax.tools.ToolProvider methods calls to static

MSAL

The javax.tools.ToolProvider() constructor has been removed in Java SE 16 since the class only contains static methods. The recipe converts javax.tools.ToolProvider getSystemJavaCompiler(), javax.tools.ToolProvider getSystemDocumentationTool() and javax.tools.ToolProvider getSystemToolClassLoader() to static methods.

org.openrewrite.java.migrate.RemovedToolProviderConstructor
mod run . --recipe=org.openrewrite.java.migrate.RemovedToolProviderConstructor

Install 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.

  1. Change method target to static