Use java.net.HttpURLConnection.HTTP_INTERNAL_ERROR

MSAL

Use java.net.HttpURLConnection.HTTP_INTERNAL_ERROR instead of the deprecated java.net.HttpURLConnection.HTTP_SERVER_ERROR.

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

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. Replace constant with another constant