On Sun, 17 Dec 2023 08:53:15 GMT, Alan Bateman <al...@openjdk.org> wrote:
>> Brian Burkhalter has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8259637: Use Stream.of in test > > test/jdk/java/io/File/GetCanonicalPath.java line 98: > >> 96: "/b/c")); >> 97: >> 98: return list.stream(); > > You could use Stream.of here, e.g. > > > return Stream.of( > Arguments.of("/../../../../../a/b/c", "/a/b/c"), > Arguments.of("/../../../../../a/../b/c", "/b/c"), > Arguments.of("/../../../../../a/../../b/c", "/b/c"), > Arguments.of("/../../../../../a/../../../b/c", "/b/c"), > Arguments.of("/../../../../../a/../../../../b/c", "/b/c") > ); So changed in cd2b3776463ddc95b36f7b65be12da7ac2686c53. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17089#discussion_r1430388844