...
Using the equals()
method or relational operators when intending to compare with the intention of comparing array contents produces incorrect results, which may can lead to vulnerabilities.
Guideline | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
EXP02-J | low | likely | low | P9 | L2 |
...
The Coverity Prevent Version 5.0 BAD_EQ checker can detect the instance where The "==" operator is being used for equality of objects when in ideal case , ideally, the equal method should have been used. The "==" operator may could consider objects different when the equals method considers them the same.
...