Description:
RICEC generates the following message: "Replace inequality comparison with equality comparison". This message is produced in situations when ranges of compared operands intersect only in one point. So inequality comparison can be replaced with equality comparison. Such message can be caused by error in program, when programmer has wrong assumption about ranges of compared operands. But even if this inequality comparison is correct, replacing it with equality comparison can make code more clear.
Example:
public void foo(char c, int i) {
if (c <= 0) { // is it a bug ?
if ((i & 1) > 0) { // can be replaced with (i & 1) != 0
...
}
}
}