How can I tell Eclipse to warn me when I compare Strings with == instead of .equals()

https://bugs.eclipse.org/bugs/show_bug.cgi?id=39095

Bug 39095 – RFE: warn when non-primitives are compared using ==

It would be nice if the compiler could allow warning when == is used to compare
non-primitive types, so that String’s compared with ==, while a valid approach
if you’re intern’ing and using the string pool, can be caught as compile-time
warnings instead of run-time non-obvious breakages..

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)