RFR: JDK-8302323 Add repeat methods to StringBuilder/StringBuffer [v7]

Alan Bateman alanb at openjdk.org
Fri Mar 3 15:25:23 UTC 2023


On Thu, 2 Mar 2023 20:19:01 GMT, Jim Laskey <jlaskey at openjdk.org> wrote:

>> Add the ability to repeatedly append char and CharSequence data to StringBuilder/StringBuffer.
>
> Jim Laskey has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add snippet

The repeat codePoint throws IAE if the input is not a valid Unicode code point. Is there a test for that? The tests for IAE seem to be the negative repeat count but maybe I missed it? Also wondering if this needs tests for legacy StringBuffer.

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

PR: https://git.openjdk.org/jdk/pull/12728


More information about the core-libs-dev mailing list