3 ms·
That's an ancient API that is de facto deprecated by best practices. Java 1.0 was far from perfect regarding the design decisions.
by ivan_gammel 3y ago
That's an ancient API that is de facto deprecated by best practices. Java 1.0 was far from perfect regarding the design decisions.
- vips7L 3y agoFrom 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.