Skip to content

Improve performance of StringUtils#trimWhitespace method [SPR-16766] #21307

@spring-projects-issues

Description

@spring-projects-issues

Oleksandr Hasheniuk opened SPR-16766 and commented

Cutting whitespaces once prevents calling System#arrayCopy on every deleted char. With using String#substring method it would be called just once.


Affects: 5.0.5

Referenced from: pull request #1805, and commits 6545cab, 5a1d7f9

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions