hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdoug...@apache.org
Subject svn commit: r771573 - in /hadoop/core/trunk: CHANGES.txt src/mapred/org/apache/hadoop/mapreduce/ID.java
Date Tue, 05 May 2009 06:06:54 GMT
Author: cdouglas
Date: Tue May  5 06:06:53 2009
New Revision: 771573

URL: http://svn.apache.org/viewvc?rev=771573&view=rev
Log:
HADOOP-5727. Simplify hashcode for ID types. Contributed by Shevek

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/mapred/org/apache/hadoop/mapreduce/ID.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=771573&r1=771572&r2=771573&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Tue May  5 06:06:53 2009
@@ -306,6 +306,8 @@
     HADOOP-5675. Do not launch a job if DistCp has no work to do. (Tsz Wo
     (Nicholas), SZE via cdouglas)
 
+    HADOOP-5727. Simplify hashcode for ID types. (Shevek via cdouglas)
+
   OPTIMIZATIONS
 
     HADOOP-5595. NameNode does not need to run a replicator to choose a

Modified: hadoop/core/trunk/src/mapred/org/apache/hadoop/mapreduce/ID.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/mapred/org/apache/hadoop/mapreduce/ID.java?rev=771573&r1=771572&r2=771573&view=diff
==============================================================================
--- hadoop/core/trunk/src/mapred/org/apache/hadoop/mapreduce/ID.java (original)
+++ hadoop/core/trunk/src/mapred/org/apache/hadoop/mapreduce/ID.java Tue May  5 06:06:53 2009
@@ -57,7 +57,7 @@
 
   @Override
   public int hashCode() {
-    return Integer.valueOf(id).hashCode();
+    return id;
   }
 
   @Override



Mime
View raw message