You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
The term Operand means that subexpression of. another expression based on #3429.
Therefore, assignment in another expression should be detected.
However, PMD didn't detect the following five cases:
Affects PMD Version:
6.36.0+
7.0.0
Rule:
AssignmentInOperand
Please provide the rule name and a link to the rule documentation:
https://pmd.github.io/latest/pmd_rules_java_errorprone.html#assignmentinoperand
Description:
The term
Operand
means thatsubexpression of. another expression
based on #3429.Therefore, assignment in another expression should be detected.
However, PMD didn't detect the following five cases:
assignment
in amethod argument
assignment
in aconditional expression
assignment
in anarray index
assignment
in amethod caller
assignment
in aconstructor
Code Sample demonstrating the issue:
Expected outcome:
These are assignments in another expression.
Therefore, it should be detected.
These are false negatives.
Thank you.
Running PMD through: [CLI]
The text was updated successfully, but these errors were encountered: