RFR: 8315960: test/jdk/java/io/File/TempDirDoesNotExist.java leaves test files behind [v4]

Naoto Sato naoto at openjdk.org
Tue Sep 19 20:58:45 UTC 2023


On Fri, 15 Sep 2023 21:51:22 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Add a `finally` block to delete the created files.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8315960: Remove vestigial unused import

test/jdk/java/io/File/TempDirDoesNotExist.java line 192:

> 190:         OutputAnalyzer originalOutput = ProcessTools.executeTestJvm(options);
> 191:         List<String> list = originalOutput.asLines().stream().filter(line
> 192:                 -> line.equalsIgnoreCase(WARNING)).collect(Collectors.toList());

`Stream.toList()` can be applied here

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

PR Review Comment: https://git.openjdk.org/jdk/pull/15757#discussion_r1330691571


More information about the core-libs-dev mailing list