> This Pull Request provides an implementation for > [JDK-8389573](https://bugs.openjdk.org/browse/JDK-8389573): > 'InputStreamReader.readAllAsString() should override the generic Reader > default implementation to avoid unnecessary buffer copies'. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Markus KARG has updated the pull request incrementally with three additional commits since the last revision: - added more corner case tests - resetting decoder to prevent subsequent read() from throwing - fast path only if decoder was not externally provided ------------- Changes: - all: https://git.openjdk.org/jdk/pull/32264/files - new: https://git.openjdk.org/jdk/pull/32264/files/e0f2f31a..ee3280ce Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=32264&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=32264&range=01-02 Stats: 163 lines in 2 files changed: 125 ins; 28 del; 10 mod Patch: https://git.openjdk.org/jdk/pull/32264.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/32264/head:pull/32264 PR: https://git.openjdk.org/jdk/pull/32264
