3 ms·
From the docs: > The java.net.URL constructors are deprecated. Developers are encouraged to use java.net.URI to parse or construct a URL.
by vips7L 3y ago
From the docs:
> The java.net.URL constructors are deprecated. Developers are encouraged to use java.net.URI to parse or construct a URL.
- afandian 3y agoExcept it accepts some inputs that URI balks at. I don't recall the exact case, but when I was trying to toleratly parse a URI, I fall back a URL and then convert it to a URI.