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

Roger Riggs rriggs at openjdk.org
Thu Feb 13 15:57:15 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

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

Marked as reviewed by rriggs (Reviewer).

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


More information about the core-libs-dev mailing list