Skip to content

Remove consecutive duplicate recipe entries - #158

Merged
timtebeek merged 1 commit into
mainfrom
tim/remove-duplicate-recipe-entries
Oct 21, 2026
Merged

timtebeek merged 1 commit into
mainfrom
tim/remove-duplicate-recipe-entries

Conversation

@timtebeek

Copy link
Copy Markdown
Member

Three recipe entries in the HttpClient 5 and POI 3.17 migrations repeated the entry right before them, with the same recipe and options. Running a recipe twice in a row has no effect, so the second copy only adds noise.

  • apache-httpclient-5.yml: a second ChangePackage for org.apache.http.cookie, and a second ChangeType for org.apache.hc.core5.http.RequestLine.
  • apache-poi-3-17.yml: a second ReplaceConstantWithAnotherConstant for CellStyle.ALIGN_CENTER_SELECTION.

recipes.csv is regenerated with recipeCsvGenerate; only the recipe counts change.

Found by RemoveConsecutiveDuplicateRecipes from openrewrite/rewrite-rewrite#107.

@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Oct 21, 2026
@timtebeek
timtebeek merged commit cca696d into main Oct 21, 2026
2 checks passed
@timtebeek
timtebeek deleted the tim/remove-duplicate-recipe-entries branch October 21, 2026 21:05
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Oct 21, 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