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

Stuart Marks smarks at openjdk.org
Tue Feb 25 15:21:02 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.

This pull request has now been integrated.

Changeset: 08bc59da
Author:    Stuart Marks <smarks at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/08bc59da9b66c6504a2d2712feebf37cc5eb2d3e
Stats:     9 lines in 1 file changed: 0 ins; 1 del; 8 mod

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

Reviewed-by: rgiulietti, shade, alanb, rriggs, liach

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

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


More information about the core-libs-dev mailing list