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

StringFormatted should not wrap first argument by default in Java 17 upgrade #618

Merged

Conversation

timtebeek
Copy link
Contributor

What's changed?

Made the wrapping optional but enabled when run directly, but disabled in the Java 17 upgrade recipe.
Also moved this recipe to after the change that introduces text blocks, such that we can pick those up still.

What's your motivation?

Have you considered any alternatives or workarounds?

We could have made the optional false by default, but then it's harder for folks to discover and run.

Any additional context

We use the same pattern for introducing text blocks; with a flag set to false when included in the Java 17 migration.

@timtebeek timtebeek self-assigned this Dec 4, 2024
@timtebeek timtebeek merged commit bd2cc9c into main Dec 4, 2024
2 checks passed
@timtebeek timtebeek deleted the string-formatted-not-for-string-concatenation-by-default branch December 4, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Including StringFormatted as part of UpgradeToJava17 seems too opinionated
1 participant