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

Jim Laskey jlaskey at openjdk.org
Mon Feb 27 13:11:32 UTC 2023


On Sun, 26 Feb 2023 17:29:09 GMT, Tagir F. Valeev <tvaleev at openjdk.org> wrote:

>> Jim Laskey has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   PR Cleanup
>
> src/java.base/share/classes/java/lang/AbstractStringBuilder.java line 1893:
> 
>> 1891:         }
>> 1892:         int length = cs.length();
>> 1893:         if (length == 1) {
> 
> It looks like, handling length == 0 case would be reasonable.

Agree.

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

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


More information about the core-libs-dev mailing list