RFR: 8354724: BufferedReader readAllLines and readString methods [v5]

Roger Riggs rriggs at openjdk.org
Fri Apr 18 19:13:42 UTC 2025


On Thu, 17 Apr 2025 23:07:35 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Implement the requested methods and add a test thereof.
>
> Brian Burkhalter has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - 8354724: Increment copyright year in Reader
>  - 8354724: Move readString from BufferedReader to Reader

Without over-rotating on performance concerns, use `readString()` as currently specified and defer to `String.lines()` to produce the Stream of lines, or `String.lines().toList()` for a List<String>.

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

PR Comment: https://git.openjdk.org/jdk/pull/24728#issuecomment-2816045724


More information about the core-libs-dev mailing list