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

Inline return of new JavaVisitor #109

Merged
merged 1 commit into from
Sep 7, 2024

Conversation

timtebeek
Copy link
Contributor

What's changed?

Extract newAbstractRefasterJavaVisitor method, and use it's return value directly when there are no preconditions.

What's your motivation?

Reduces the number of suggested changes when running
https://docs.openrewrite.org/recipes/recipes/openrewritebestpractices

@timtebeek timtebeek self-assigned this Sep 7, 2024
@timtebeek timtebeek added the enhancement New feature or request label Sep 7, 2024
@timtebeek timtebeek merged commit 5c200fd into main Sep 7, 2024
1 check passed
@timtebeek timtebeek deleted the inline-return-of-new-java-visitor branch September 7, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants