Skip to content

Replace "String::replaceAll" with pre compiled pattern#900

Merged
lukehutch merged 1 commit intoclassgraph:latestfrom
kamilkrzywanski:latest
Jun 7, 2025
Merged

Replace "String::replaceAll" with pre compiled pattern#900
lukehutch merged 1 commit intoclassgraph:latestfrom
kamilkrzywanski:latest

Conversation

@kamilkrzywanski
Copy link

Replace the usage of String::replaceAll with a precompiled Pattern in the Jar utilities. The replaceAll method is invoked multiple times during the startup of my Spring Boot application, which impacts performance.

@kamilkrzywanski
Copy link
Author

@lukehutch How about this pr?

@lukehutch
Copy link
Member

LGTM, thanks!

@lukehutch lukehutch merged commit e8bbd99 into classgraph:latest Jun 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants