Repository: hadoop
Updated Branches:
  refs/heads/branch-2.7 5cb80992f -> aa0231f92


HADOOP-12465. Incorrect javadoc in WritableUtils.java. Contributed by Jagadesh 
Kiran N.

(cherry picked from commit 7fbf69bf47bb733f95b4afd733f9b65e1e7f2b46)
(cherry picked from commit 613c7088fd1accc59fdb7c700ef89409b0fb0d43)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/aa0231f9
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/aa0231f9
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/aa0231f9

Branch: refs/heads/branch-2.7
Commit: aa0231f921a6cd07d07250dbde12f31701b6fdc6
Parents: 5cb8099
Author: Akira Ajisaka <[email protected]>
Authored: Thu Oct 8 06:08:28 2015 +0900
Committer: Akira Ajisaka <[email protected]>
Committed: Thu Oct 8 06:09:32 2015 +0900

----------------------------------------------------------------------
 hadoop-common-project/hadoop-common/CHANGES.txt              | 3 +++
 .../src/main/java/org/apache/hadoop/io/WritableUtils.java    | 8 ++++----
 2 files changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/aa0231f9/hadoop-common-project/hadoop-common/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt 
b/hadoop-common-project/hadoop-common/CHANGES.txt
index 2a0205d..46c1f16 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -46,6 +46,9 @@ Release 2.7.2 - UNRELEASED
     HADOOP-12230. hadoop-project declares duplicate, conflicting curator
     dependencies. (Rakesh R via aajisaka)
 
+    HADOOP-12465. Incorrect javadoc in WritableUtils.java.
+    (Jagadesh Kiran N via aajisaka)
+
 Release 2.7.1 - 2015-07-06 
 
   INCOMPATIBLE CHANGES

http://git-wip-us.apache.org/repos/asf/hadoop/blob/aa0231f9/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/WritableUtils.java
----------------------------------------------------------------------
diff --git 
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/WritableUtils.java
 
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/WritableUtils.java
index a11a860..6f106f7 100644
--- 
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/WritableUtils.java
+++ 
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/WritableUtils.java
@@ -236,13 +236,13 @@ public final class WritableUtils  {
 
   /**
    * Serializes an integer to a binary stream with zero-compressed encoding.
-   * For -120 <= i <= 127, only one byte is used with the actual value.
+   * For -112 <= i <= 127, only one byte is used with the actual value.
    * For other values of i, the first byte value indicates whether the
    * integer is positive or negative, and the number of bytes that follow.
+   * If the first byte value v is between -113 and -116, the following integer
+   * is positive, with number of bytes that follow are -(v+112).
    * If the first byte value v is between -121 and -124, the following integer
-   * is positive, with number of bytes that follow are -(v+120).
-   * If the first byte value v is between -125 and -128, the following integer
-   * is negative, with number of bytes that follow are -(v+124). Bytes are
+   * is negative, with number of bytes that follow are -(v+120). Bytes are
    * stored in the high-non-zero-byte-first order.
    *
    * @param stream Binary output stream

Reply via email to