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

Add recipe to remove mutable static fields from Recipes #4557

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

timtebeek
Copy link
Contributor

@timtebeek timtebeek self-assigned this Oct 7, 2024
@timtebeek timtebeek added the recipe Requested Recipe label Oct 7, 2024
@Laurens-W Laurens-W self-requested a review October 8, 2024 07:48
@timtebeek timtebeek merged commit 6c1f5c3 into main Oct 8, 2024
2 checks passed
@timtebeek timtebeek deleted the no-mutable-static-fields-in-recipes branch October 8, 2024 08:09
@timtebeek
Copy link
Contributor Author

@Laurens-W This recipe uncovered a number of existing cases; would you mind refactoring those recipe to remove the mutable static fields somehow? Make it immutable, make it a field on the visitor, something..
https://app.moderne.io/results/kXPH4Z0vh

@timtebeek
Copy link
Contributor Author

Here's a first example: openrewrite/rewrite-spring@e742517

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
recipe Requested Recipe
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants