Skip to content

Add test to ReplaceConstantWithAnotherConstantTest - #8257

Open
mowisbb wants to merge 1 commit into
openrewrite:mainfrom
mowisbb:add-test-to-ReplaceConstantWithAnotherConstantTest
Open

Add test to ReplaceConstantWithAnotherConstantTest#8257
mowisbb wants to merge 1 commit into
openrewrite:mainfrom
mowisbb:add-test-to-ReplaceConstantWithAnotherConstantTest

Conversation

@mowisbb

@mowisbb mowisbb commented Jul 15, 2026

Copy link
Copy Markdown

What's changed?

This change adds a test case which is not covered by ReplaceConstantWithAnotherConstant recipe.

The test case shows that a wildcard "import static foo1.Bar.*" ist not kept and instead replaced by the specific constant imports. Maybe its by design, but for us we needed that the wildcard import stays there. So far no time was invested in the change of the Recipe, because first it needs to be clarified its a bug or its by design.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant