-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ListFirstAndLast skips methodCall().get(0)
#423
Comments
Ah yes those will have missing type information unfortunately, as we don't yet support Lombok annotations: Not something specific to this recipe, so perhaps best tracked in the above issue. |
Correction: It's not about lombok! Explicit getters don't work either:
Skimming through my code everytime it is converted the pattern is |
methodCall().get(0)
Ah that's helpful, thanks! We should be able to create a test from your example above and then work out the steps needed to make this work. |
You're right; there's a strong overfit on the recipe to particular cases; this expands that a bit with more overfit, but we likely can relax the constraints a bit to cover more cases. Thanks for chiming in! |
What version of OpenRewrite are you using?
see below
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?
It doesn't have to be an inner class, I'm just not sure if a sequence of classes as a string works in tests.
What did you expect to see?
What did you see instead?
no change
What is the full stack trace of any errors you encountered?
Are you interested in contributing a fix to OpenRewrite?
The text was updated successfully, but these errors were encountered: