Manageability
Medium
Lightning
SF-0060
Assignments in operands make code more complicated and harder to read. Also it can be a signal of a poorly-defined equality operator (assignment operator ‘=’ was used instead of the equality operator ‘==’.””) which will produce unwanted results.
This is sometime indicative of the bug where the assignment operator ‘=’ was used instead of the equality operator ‘==’.””
30 min
See the PMD documentation article: AssignmentInOperand.