RFR: 8258444: Clean up specifications of java.io.Reader.read(char[], int, int) in subclass overrides

Brian Burkhalter bpb at openjdk.java.net
Mon Feb 22 23:36:53 UTC 2021


On Mon, 22 Feb 2021 23:27:19 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> 8258444: Clean up specifications of java.io.Reader.read(char[],int,int) in subclass overrides

This change proposes to use {@inheritDoc} to improve consistency of the specification of `Reader.read(char[],in,in)` in `Reader` and its subclasses. In the course of this, some bounds checks are replaced with `Objects.checkFromIndexSize()`.

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

PR: https://git.openjdk.java.net/jdk/pull/2680


More information about the core-libs-dev mailing list