RFR: 8354724: BufferedReader readAllLines and readString methods

Johannes Graham duke at openjdk.org
Thu Apr 17 17:32:57 UTC 2025


On Thu, 17 Apr 2025 17:28:12 GMT, Johannes Graham <duke at openjdk.org> wrote:

>> Implement the requested methods and add a test thereof.
>
> test/jdk/java/io/BufferedReader/ReadAll.java line 34:
> 
>> 32: 
>> 33: import java.io.BufferedReader;
>> 34: import java.io.File;
> 
> Cosmetic thought - I think this could all be done with Path, avoiding File and friends.

possibly even using Reader.of(CharSequence)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24728#discussion_r2049389973


More information about the core-libs-dev mailing list