URL#equals() and URL#hashCode()

MSAL

Uses of equals() and hashCode() cause java.net.URL to make blocking internet connections. Instead, use java.net.URI.

org.openrewrite.staticanalysis.URLEqualsHashCodeRecipes
mod run . --recipe=org.openrewrite.staticanalysis.URLEqualsHashCodeRecipes

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. URL#equals()
  2. URL#hashCode()