directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fel...@apache.org>
Subject Re: Equals and HashCode
Date Sun, 16 May 2010 08:06:29 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Definitively not a false positive. Implementing the equals() method does
> not works if we don't implement hashcade() at the same time.

In Directory Shared exist a class
org.apache.directory.shared.ldap.util.HashCodeBuilder

I there something special about it compared to the one from the Apache
Commons project [1] (it does quite the same)? If not why not drop the
one from Shared and use the Commons implementation?

Felix


[1]
http://commons.apache.org/lang/api/org/apache/commons/lang/builder/HashCodeBuilder.html

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvvp4UACgkQ2lZVCB08qHEN/ACePRVx3OXCZy7st3MN4h75p6RI
zNYAn2JYIQKAZnkJag2TgSedcNJfv1OY
=7xJ6
-----END PGP SIGNATURE-----

Mime
View raw message