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

Apply org.openrewrite.staticanalysis.ChainStringBuilderAppendCalls: String concatenation within calls to StringBuilder.append() causes unnecessary memory allocation #45592

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

punkratz312
Copy link

@punkratz312 punkratz312 commented Jan 14, 2025

String concatenation within calls to StringBuilder.append() causes unnecessary memory allocation. Except for concatenations of String literals, which are joined together at compile time. Replaces inefficient concatenations with chained calls to StringBuilder.append().

https://docs.openrewrite.org/recipes/staticanalysis/chainstringbuilderappendcalls

is this any good?

maybe its related to: #45587

String concatenation within calls to StringBuilder.append() causes unnecessary memory allocation. Except for concatenations of String literals, which are joined together at compile time. Replaces inefficient concatenations with chained calls to StringBuilder.append().

https://docs.openrewrite.org/recipes/staticanalysis/chainstringbuilderappendcalls
Copy link

quarkus-bot bot commented Jan 14, 2025

Thanks for your pull request!

Your pull request does not follow our editorial rules. Could you have a look?

  • title should preferably start with an uppercase character (if it makes sense!)

This message is automatically generated by a bot.

@punkratz312 punkratz312 changed the title org.openrewrite.staticanalysis.ChainStringBuilderAppendCalls: String concatenation within calls to StringBuilder.append() causes unnecessary memory allocation Apply org.openrewrite.staticanalysis.ChainStringBuilderAppendCalls: String concatenation within calls to StringBuilder.append() causes unnecessary memory allocation Jan 14, 2025
@punkratz312 punkratz312 marked this pull request as ready for review January 14, 2025 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant