[jdk17] RFR: JDK-8268236 The documentation of the String.regionMatches method contains error

Daniel Fuchs dfuchs at openjdk.java.net
Mon Jun 28 13:37:06 UTC 2021


On Mon, 28 Jun 2021 12:28:06 GMT, Jim Laskey <jlaskey at openjdk.org> wrote:

> The documentation of the String.regionMatches method contains this fragment: this.substring(toffset, len).codePoints(), but String.substring method takes index, not the length, as the second argument.

Marked as reviewed by dfuchs (Reviewer).

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

PR: https://git.openjdk.java.net/jdk17/pull/157


More information about the core-libs-dev mailing list