-
Notifications
You must be signed in to change notification settings - Fork 373
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
Assignments inside condition do not work with Parenthesis removal #3913
Comments
Hi @koppor ; Thanks for the report! It seems we're not yet handling that rewrite/rewrite-java/src/main/java/org/openrewrite/java/cleanup/UnnecessaryParenthesesVisitor.java Line 27 in 7d3655a
I'll move this issue and we can fix that in openrewrite/rewrite. |
Thank you for moving around. I still have not (fully) learned in which repository which issue should go. I really praise GitHub that it implemented the move-around-feature! The code in question came from http://stackoverflow.com/questions/1030479/most-efficient-way-of-converting-string-to-integer-in-java |
I understand it's sometimes not immediately clear where issues should be reported or fixed; You're right in reporting issues in the repository are located, and I'll move the issues where I think the fix might be elsewhere as it was here. Thanks again for the report; really helpful, and this case quickly fixed with 670dd5c |
I can confirm that the fix works in the BOM 2.6.2 - JabRef/jabref#10813 |
Glad to hear, thanks! Always nice to get that feedback. :) |
I updated openrewrite:
Some more parentheses are removed here.
I have some WTF parts in the code with assignments inside (!) if conditions. When removing parentheses here, it leads to a compiler error
The text was updated successfully, but these errors were encountered: