It would be nice if checkstyle could check that == is
not used in cases where .equals() should be used e.g:
String s1 = "hello"
String s2 = "h"
if(s1 == s2)
while(s1 == s2)
This was requested 4 years ago:
Log in to post a comment.