Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use String.startsWith() instead of String.substring() in PatternMatchUtils #26822

Merged
merged 1 commit into from
Apr 21, 2021

Conversation

stsypanov
Copy link
Contributor

Instead of allocating a new substring at each call we can use String.startsWith()

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Apr 18, 2021
@sbrannen sbrannen added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Apr 21, 2021
@sbrannen sbrannen self-assigned this Apr 21, 2021
@sbrannen sbrannen added this to the 5.3.7 milestone Apr 21, 2021
@sbrannen sbrannen merged commit db9a10b into spring-projects:master Apr 21, 2021
@sbrannen
Copy link
Member

This has been merged into master.

Thanks

@stsypanov stsypanov deleted the PatternMatchUtils branch April 21, 2021 11:59
Zoran0104 pushed a commit to Zoran0104/spring-framework that referenced this pull request Aug 20, 2021
lxbzmy pushed a commit to lxbzmy/spring-framework that referenced this pull request Mar 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants