Avoid direct URL construction and URL equality checks #29486
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
As a first step towards #29481, driven by the deprecation of the
java.net.URL
constructors in JDK 20, we can factor out all URL construction totoURL
methods inResourceUtils
, centralizing the use ofjava.net.URL
constructors and therefore also their possible replacement in the future.Also,
UrlResource
traditionally uses equality on a cleaned URL instance for comparisons. This can be replaced with a check on a cleaned URL String, sourced from either a URI or a URL instance.The text was updated successfully, but these errors were encountered: