Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[java] False positive "UselessParentheses" for parentheses that contain assignment #1285
Affects PMD Version: PMD 6.5.0, ran through maven-pmd-plugin 3.10.0.
Rule: UselessParentheses (category/java/codestyle.xml/UselessParentheses)
Description: This detector does not detect the value of the extra parentheses to ensure that the right result is assigned to the in-line assignment.
Code Sample demonstrating the issue:
Running PMD through: Maven