Migrate public static void main(String[] args) to instance void main()
MSALMigrate public static void main(String[] args) method to instance void main() method when the args parameter is unused, as supported by JEP 512 in Java 25+.
org. openrewrite. java. migrate. lang. MigrateMainMethodToInstanceMainmod run . --recipe= org. openrewrite. java. migrate. lang. MigrateMainMethodToInstanceMainInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.