.equals(x) is probably not intended Permanently deleted user 创建于 2005年12月07日 07:35 this intention produces false positives now (4069)should only warn if parameter is null, but seems to do on every .equals
Fixed already: http://www.jetbrains.net/jira/browse/IDEADEV-3522
Bas
Bas, i see also this:
if (o != null) {
obj.equals(o); // Here is Object.equals(null) marked
}
Yep, same problem. Everywhere object.equals(something) is marked and object.equals(null) isn't. I recommend to disable this inspection until the next build.
Bas
Ok, thanks :)