Use modernized java.net APIs

MSAL

Certain Java networking APIs have become deprecated and their usages changed, necessitating usage changes.

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

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. Use java.net.MulticastSocket#setTimeToLive(int)
  2. Use java.net.MulticastSocket#getTimeToLive()
  3. Use java.net.HttpURLConnection.HTTP_INTERNAL_ERROR
  4. Use java.net.URLDecoder#decode(String, StandardCharsets.UTF_8)
  5. Use java.net.URLEncoder#encode(String, StandardCharsets.UTF_8)