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

Jim Laskey jlaskey at openjdk.org
Wed Mar 1 12:54:44 UTC 2023


On Tue, 28 Feb 2023 22:08:34 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> Jim Laskey has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - Remove @throws IndexOutOfBoundsException
>>  - Change error report to use "is negative"
>
> src/java.base/share/classes/java/lang/AbstractStringBuilder.java line 1835:
> 
>> 1833:      * @return  a reference to this object.
>> 1834:      *
>> 1835:      * @since 21
> 
> @since should be last / after \throws; here and in the other method added.

Changed

> src/java.base/share/classes/java/lang/StringBuffer.java line 713:
> 
>> 711:     /**
>> 712:      * @since 21
>> 713:      * @throws IllegalArgumentException {@inheritDoc}
> 
> @throws comes before @since here and in StringBuilder.

Changed

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

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


More information about the core-libs-dev mailing list