Convert new URL(String, ..) to new URI(String, ..).toURL()

MSAL

Converts new URL(String, ..) constructors to new URI(String, ..).toURL().

org.openrewrite.java.migrate.net.URLConstructorsToNewURI
mod run . --recipe=org.openrewrite.java.migrate.net.URLConstructorsToNewURI

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