Avoid substring allocation in StringUtils.replace #24023
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Our heavily used
StringUtils.replace
implementation temporarily allocatesString
instances fromString.substring
calls which can easily be avoided by using the correspondingStringBuilder.append
variants.The text was updated successfully, but these errors were encountered: