RFR: 8138614: (spec str) StringBuffer and StringBuilder methods improperly require "new" String to be returned

Aleksey Shipilev shade at openjdk.org
Thu Feb 13 08:33:12 UTC 2025


On Wed, 12 Feb 2025 19:55:29 GMT, Stuart Marks <smarks at openjdk.org> wrote:

> A couple adjustments to the specs for four methods of StringBuilder and StringBuffer so that they no longer require new Strings to be created, just a String with the right contents. No implementation changes. Note that the actual specs (and implementations) are actually in AbstractStringBuilder, and they're inherited by StringBuilder and StringBuffer.

Looks good to me. Thanks for taking care of this!

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

Marked as reviewed by shade (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/23599#pullrequestreview-2614217560


More information about the core-libs-dev mailing list