Ver Fonte

HADOOP-7512. Fix example mistake in WritableComparable javadocs. Contributed by Harsh J

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1156833 13f79535-47bb-0310-9956-ffa450edef68
Eli Collins há 13 anos atrás
pai
commit
ba0b61cf39

+ 3 - 0
hadoop-common/CHANGES.txt

@@ -478,6 +478,9 @@ Trunk (unreleased changes)
     HADOOP-7533. Allow test-patch to be run from any subproject directory.
     (tomwhite)
 
+    HADOOP-7512. Fix example mistake in WritableComparable javadocs.
+    (Harsh J via eli)
+
 Release 0.22.0 - Unreleased
 
   INCOMPATIBLE CHANGES

+ 1 - 1
hadoop-common/src/main/java/org/apache/hadoop/io/WritableComparable.java

@@ -52,7 +52,7 @@ import org.apache.hadoop.classification.InterfaceStability;
  *         timestamp = in.readLong();
  *       }
  *       
- *       public int compareTo(MyWritableComparable w) {
+ *       public int compareTo(MyWritableComparable o) {
  *         int thisValue = this.value;
  *         int thatValue = ((IntWritable)o).value;
  *         return (thisValue < thatValue ? -1 : (thisValue==thatValue ? 0 : 1));