I've implemented a check as follows:
Checks that string literals are not used with == and !=.
Rationale: Often programmers use "a == b" by
mistake - when they mean to write: "a.equals(b)".
Currenly only the case where one side of the
comparison is a string literal is dealt with.
An example of how to configure the check is:
Log in to post a comment.