RFR: 8285452: Add a new test library API to replace a file content using FileUtils.java [v5]
Jim Laskey
jlaskey at openjdk.java.net
Fri Apr 29 11:09:46 UTC 2022
On Fri, 29 Apr 2022 10:46:58 GMT, Sibabrata Sahoo <ssahoo at openjdk.org> wrote:
>> 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.
You can use \s instead of space. Then you will have no complaints.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8360
More information about the core-libs-dev
mailing list