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:
parent
3228351856
commit
ba0b61cf39
@ -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
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user