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
This commit is contained in:
Eli Collins 2011-08-11 21:15:49 +00:00
parent 3228351856
commit ba0b61cf39
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -52,7 +52,7 @@
* 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));