commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r564056 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/HashCodeBuilder.java
Date Thu, 09 Aug 2007 00:29:22 GMT
Author: bayard
Date: Wed Aug  8 17:29:21 2007
New Revision: 564056

URL: http://svn.apache.org/viewvc?view=rev&rev=564056
Log:
Adding non-javadoc note as per LANG-342

Modified:
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/HashCodeBuilder.java

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/HashCodeBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/HashCodeBuilder.java?view=diff&rev=564056&r1=564055&r2=564056
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/HashCodeBuilder.java
(original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/HashCodeBuilder.java
Wed Aug  8 17:29:21 2007
@@ -807,11 +807,16 @@
      * <p>
      * Append a <code>hashCode</code> for a <code>long</code>.
      * </p>
+     * <p>
      * 
      * @param value
      *            the long to add to the <code>hashCode</code>
      * @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) {
         iTotal = iTotal * iConstant + ((int) (value ^ (value >> 32)));
         return this;



Mime
View raw message