directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fe...@otego.com>
Subject Equals and HashCode
Date Sat, 15 May 2010 08:35:46 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

We have a quite a lot of the following findings:

HE: Class defines equals() and uses Object.hashCode()
(HE_EQUALS_USE_HASHCODE)
See [1], ...

Do we consider them all as false positives or should we override the
hashCode function?

Felix

[1]
http://findbugs.sourceforge.net/bugDescriptions.html#HE_EQUALS_USE_HASHCODE
[2]
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode%28%29
[3]
http://bytes.com/topic/java/insights/723476-overriding-equals-hashcode-methods
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvuXOIACgkQ2lZVCB08qHFDzACg56XbS76zk694htt1owwRBAsu
z4wAoNIFr+Ed90uIwQ7H2eyfWlz3NEEa
=QIJQ
-----END PGP SIGNATURE-----

Mime
View raw message