RFR: 8339704: Refactor StringConcatHelper simpleConcat [v6]

Shaojin Wen swen at openjdk.org
Mon Sep 9 17:20:44 UTC 2024


> The string concatenation of the java.base module is implemented using StringBuilder. By providing a series of concat methods in StringConcatHelper, it is used in the java.lang package to replace string concatenation.
> 
> These concat methods can also be exposed through JLA for use by other packages, such as java.lang.constant.
> 
> These concat methods can replace Concat1 and become part of StringConcatFactory#simpleConcat

Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:

  more 2 arguments simple concat

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/20726/files
  - new: https://git.openjdk.org/jdk/pull/20726/files/f63e6a7f..ed070af2

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20726&range=05
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20726&range=04-05

  Stats: 19 lines in 1 file changed: 16 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/20726.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20726/head:pull/20726

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


More information about the core-libs-dev mailing list