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
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
- links to
-
Review(master) openjdk/jdk/20726