-
Notifications
You must be signed in to change notification settings - Fork 82
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
org.openrewrite.java.migrate.lang.StringFormatted
leaves hanging spaces/lf
#573
Comments
Hi @blipper could you please let me know which recipe you have used for the above. I will try to assist you on resolution. |
org.openrewrite.java.migrate.lang.StringFormatted :) https://docs.openrewrite.org/recipes/java/migrate/lang/stringformatted |
org.openrewrite.java.migrate.lang.StringFormatted
leaves hanging spaces/lf
Thanks both; looks like we should retain the prefix of the original method invocation, as opposed to the prefix of the first String argument. |
Is anyone working on this? If not I want to contribute |
Hi! No not yet; feel free to throw up a draft PR with a new unit test and then we can work from there. |
@timtebeek I tried to add a test to reproduce the issue as suggested, but I am wondering if this is fixed by #453. As you can see the previous testcase just above the newly added test in the draft MR. When I remove the |
@blipper what version you were using? |
Thanks for the effort to reproduce @coderustic ! We indeed have the version number as part of the bug report template: |
Sorry. I was using 8.34.0 |
What's |
What did you expect to see?
What did you see instead?
This leaves a line feed above. This matters because checkstyle will complain about trailing spaces.
The text was updated successfully, but these errors were encountered: