Closed timo-abele closed 3 months ago
Thanks for the suggestion @timo-abele ; I think that's suitably covered in 964e677739350ce16cc0b4ee55fb47d152a2baf0 now by reusing a recipe we already had to flip misplaced assertions first before migrating to AssertJ. Hope you agree!
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?
Or even ``
What did you expect to see?
Or maybe through a dedicated pre-clean recipe that flips them:
assertNotEquals(null, myVariable);
This would cover more casesWhat did you see instead?
What is the full stack trace of any errors you encountered?
Comments
This is intentionally filed as a bug report and not a feature request because it breaks the build. So this has to be fixed. I see no reason for any user to push an Assertion on
null
to main.Are you interested in contributing a fix to OpenRewrite?