Adding non-javadoc note as per LANG-342
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@564056 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2730ae5394
commit
7fc38e82ec
|
@ -807,11 +807,16 @@ public class HashCodeBuilder {
|
||||||
* <p>
|
* <p>
|
||||||
* Append a <code>hashCode</code> for a <code>long</code>.
|
* Append a <code>hashCode</code> for a <code>long</code>.
|
||||||
* </p>
|
* </p>
|
||||||
|
* <p>
|
||||||
*
|
*
|
||||||
* @param value
|
* @param value
|
||||||
* the long to add to the <code>hashCode</code>
|
* the long to add to the <code>hashCode</code>
|
||||||
* @return this
|
* @return this
|
||||||
*/
|
*/
|
||||||
|
// NOTE: This method uses >> and not >>> as Effective Java and
|
||||||
|
// Long.hashCode do. Ideally we should switch to >>> at
|
||||||
|
// some stage. There are backwards compat issues, so
|
||||||
|
// that will have to wait for the time being. cf LANG-342.
|
||||||
public HashCodeBuilder append(long value) {
|
public HashCodeBuilder append(long value) {
|
||||||
iTotal = iTotal * iConstant + ((int) (value ^ (value >> 32)));
|
iTotal = iTotal * iConstant + ((int) (value ^ (value >> 32)));
|
||||||
return this;
|
return this;
|
||||||
|
|
Loading…
Reference in New Issue