#416 ObjectEqualityCheck

open
nobody
None
5
2012-10-10
2006-02-23
No

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)
{
..
}
etc.

This was requested 4 years ago:
http://sourceforge.net/mailarchive/message.php?msg_id=1979630

Nobody responded.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks