On Wed, 4 Jan 2023 15:50:35 GMT, Sergey Tsypanov <stsypa...@openjdk.org> wrote:
> Use the following methods instead of hand-written code: > - Objects.checkFromIndexSize() > - Objects.checkFromToIndex() src/java.base/share/classes/java/io/CharArrayWriter.java line 101: > 99: */ > 100: public void write(char[] c, int off, int len) { > 101: Objects.checkFromToIndex(off, len, c.length); shouldn't that be Objects.checkFromIndexSize(off, len, c.length); ------------- PR: https://git.openjdk.org/jdk/pull/11849