Closed pzygielo closed 1 year ago
I see that duplicated Record
import (p. 1 above) is no longer inserted (looks that something in maven plugin 5.0.0->5.2.1 helps :smile:)
this was very kindly fixed by @tclayton-newr in #3397; you can already try this in our snapshot versions, or with the next release in a week or so
Still having my Record
removed in
which seems to use rewrite 8.1.10.
Still having my Record
removed in
Still having my Record
removed in
Could this be reopened (or cloned to new one if needed) by maintainers, please?
Is #3527 included https://github.com/openrewrite/rewrite/releases/tag/v8.5.0 (and then in rewrite-maven-plugin:5.5.2)?
If it is included in plugin 5.5.2 - then this issue is still not solved, but was closed as completed by GH with keyword.
I prepared reproducer that is linked in opening post. If someone decides to claim that this issue is fixed - may I ask to validate such statement with it?
Or please reopen and close as not planned to not give me the false hope! :grinning:
What version of OpenRewrite are you using?
I am using
How are you running OpenRewrite?
I am using the Maven plugin, and my project is a single module project
What is the smallest, simplest way to reproduce the problem?
https://github.com/pzrep/openrewrite-unused-import-record
What did you expect to see?
I expected to see no changes.
What did you see instead?
https://github.com/pzrep/openrewrite-unused-import-record/actions/runs/5100022041/jobs/9168054354
Depends on number of imports done with * I guess:
star-import is replaced with explicit imports, including duplicated [
Record
] one:This is unfortunate but allows to compile modified class.
required import gets removed
-import pzrep.p1.Record; import pzrep.p1.*;
class Client2 {