directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: Equals and HashCode
Date Sat, 15 May 2010 11:28:16 GMT
On 5/15/10 10:35 AM, Felix Knecht wrote:
> -----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?
>    
Definitively not a false positive. Implementing the equals() method does 
not works if we don't implement hashcade() at the same time.

-- 
Regards,
Cordialement,
Emmanuel L├ęcharny
www.nextury.com



Mime
View raw message