On Tue, 26 Apr 2022 07:02:55 GMT, Сергей Цыпанов <d...@openjdk.java.net> wrote:

> - use `String.equalsIgnoreCase()` instead of hand-written code relying on 
> `String.charAt()`
> - use `String.compareToIgnoreCase()` instead of hand-written code relying on 
> `String.charAt()`
> - drop branches that are never executed
> - drop unused argument from `URI.resolvePath()`
> - simplify String-related operations

Btw, I see that `java.net.URI` duplicates some methods from 
`sun.net.www.ParseUtil`. Should we consolidate them e.g. in a way of reusing 
functionality of `sun.net.www.ParseUtil` in `java.net.URI`?

-------------

PR: https://git.openjdk.java.net/jdk/pull/8397

Reply via email to