Calling "maybeRemoveImport(...)" does not remove import
Closed this issue · 1 comments
michael-schnell commented
What version of OpenRewrite are you using?
2.0.7
How are you running OpenRewrite?
Unit Test
What is the smallest, simplest way to reproduce the problem?
Clone the project https://github.com/michael-schnell/openrewrite-issue/ and run the unit tests.
What did you expect to see?
There should be no test failure.
What did you see instead?
The Joda import is still there and makes the unit tests fail:
import org.joda.time.format.DateTimeFormatterBuilder;
Example
timtebeek commented
I've created a fix for your tests and reported that here as a pull request:
michael-schnell/openrewrite-issue#1
Hope that helps!