Skip to content

OpenRewrite recipe best practices#988

Merged
timtebeek merged 4 commits intomainfrom
feature/open-rewrite-recipe-best-practices
Apr 8, 2026
Merged

OpenRewrite recipe best practices#988
timtebeek merged 4 commits intomainfrom
feature/open-rewrite-recipe-best-practices

Conversation

@timtebeek
Copy link
Copy Markdown
Member

Replace getCursor().getParentTreeCursor() with a new root Cursor
to avoid IllegalStateException when CoalescePropertiesVisitor is
called from the top-level visit method where no parent tree exists.
Use two-arg visit() overload instead of passing an explicit root
cursor, and cast to SourceFile instead of Yaml.Documents.
@timtebeek timtebeek merged commit 3ec4ce7 into main Apr 8, 2026
1 check passed
@timtebeek timtebeek deleted the feature/open-rewrite-recipe-best-practices branch April 8, 2026 09:57
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Apr 8, 2026
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.

1 participant