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

Andrey Turbanov aturbanov at openjdk.org
Thu Mar 2 18:42:24 UTC 2023


On Wed, 1 Mar 2023 12:54:44 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 two additional commits since the last revision:
> 
>  - Move @since in subclasses
>  - Move @since

src/java.base/share/classes/java/lang/AbstractStringBuilder.java line 1911:

> 1909:         if (cs instanceof String str) {
> 1910:             putStringAt(offset, str);
> 1911:         } else  if (cs instanceof AbstractStringBuilder asb) {

Suggestion:

        } else if (cs instanceof AbstractStringBuilder asb) {

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

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


More information about the core-libs-dev mailing list