-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.7.1
-
Fix Version/s: 2.8.0, 2.7.2, 3.0.0-alpha1
-
Component/s: documentation
-
Labels:None
-
Hadoop Flags:Reviewed
Documentation for writeVLong in WritableUtils states that "For
-112 <= i <= 127, only one byte is used"
Documentation for writeVInt states that "For -120 <= i <= 127, only one byte is used"
writeVInt calls internally writeVLong, so the ranges are the same for both functions.
After examining the code, I see that the documentation that is at writeVLong is correct.
Documentation for writeVInt is therefore incorrect and should be fixed.