commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r897533 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java
Date Sat, 09 Jan 2010 20:23:14 GMT
Author: bayard
Date: Sat Jan  9 20:23:13 2010
New Revision: 897533

URL: http://svn.apache.org/viewvc?rev=897533&view=rev
Log:
Removing unnecessary <p> and Class variable

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

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java?rev=897533&r1=897532&r2=897533&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java
Sat Jan  9 20:23:13 2010
@@ -813,7 +813,6 @@
      * <p>
      * Append a <code>hashCode</code> for a <code>long</code>.
      * </p>
-     * <p>
      * 
      * @param value
      *            the long to add to the <code>hashCode</code>
@@ -862,8 +861,7 @@
             iTotal = iTotal * iConstant;
 
         } else {
-            Class clss = object.getClass();
-            if(clss.isArray()) {
+            if(object.getClass().isArray()) {
                 // 'Switch' on type of array, to dispatch to the correct handler
                 // This handles multi dimensional arrays
                 if (object instanceof long[]) {



Mime
View raw message