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..