RFR: 8285452: Add a new test library API to replace a file content using FileUtils.java [v5]
Sibabrata Sahoo
ssahoo at openjdk.java.net
Fri Apr 29 10:50:43 UTC 2022
On Fri, 29 Apr 2022 10:46:31 GMT, Sibabrata Sahoo <ssahoo at openjdk.org> wrote:
>> A new API to support replacing selective lines with desired content.
>
> Sibabrata Sahoo has updated the pull request incrementally with one additional commit since the last revision:
>
> updated to add space character in begining of multiline string
test/jdk/java/nio/file/Files/FileUtilsTest.java line 51:
> 49: c""";
> 50: // 1st line has a space character
> 51: String sabc = " " + System.lineSeparator() + abc;
It's strange that jcheck fails, if there is space character in beginning of line in a multiline string. So i have to follow this way add a space character in the beginning of multiline string.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8360
More information about the core-libs-dev
mailing list