On Wed, 13 May 2026 10:45:51 GMT, Volkan Yazici <[email protected]> wrote:
> Document and test empty path segment normalization in `java.net.URI`. > > --------- > - [X] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). src/java.base/share/classes/java/net/URI.java line 180: > 178: * <p> <i>Normalization</i> is the process of removing unnecessary > {@code "."}, > 179: * {@code ".."}, and {@code "//"} (empty) segments from the path > component of a > 180: * hierarchical URI. Each {@code "."} and {@code "//"} segment is simply Should this say empty segments rather than "//" ? src/java.base/share/classes/java/net/URI.java line 1033: > 1031: * <b><i>(Deviation from RFC 2396)</i></b> </p></li> > 1032: * > 1033: * <li><p> All {@code "//"} empty path segments are removed. The context is here is path component so you can use "segments" instead of "path segments". ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/31150#discussion_r3235490754 PR Review Comment: https://git.openjdk.org/jdk/pull/31150#discussion_r3235510619
