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

Chen Liang liach at openjdk.org
Thu Feb 13 20:03: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.

Marked as reviewed by liach (Reviewer).

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

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


More information about the core-libs-dev mailing list