RFR: 8285521: Minor improvements in java.net.URI

ExE Boss duke at openjdk.java.net
Thu May 19 21:56:46 UTC 2022


On Tue, 26 Apr 2022 07:02:55 GMT, Сергей Цыпанов <duke at 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

Note that if the current locale is Turkish, then `"I".equalsIgnoreCase("i")` (`"\u0049".equalsIgnoreCase("\u0069")`) returns `false`.

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

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


More information about the net-dev mailing list