RFR: 8285452: Add a new test library API to replace a file content using FileUtils.java [v5]
Jaikiran Pai
jpai at openjdk.java.net
Tue May 3 05:04:19 UTC 2022
On Mon, 2 May 2022 13:13:02 GMT, Weijun Wang <weijun at openjdk.org> wrote:
>> `lines.remove()` and `lines.subList()` will throw the correct exception. Since you asked, we can add it.
>
> Now that we call `subList` at the beginning, I think there's no need to explicitly perform a check.
Hello Weijun, the change to this part of the code in context of index checks, looks fine to me now. Thank you for considering it.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8360
More information about the core-libs-dev
mailing list