Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-12465

Incorrect javadoc in WritableUtils.java

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      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.

      Attachments

        1. MAPREDUCE-6496-00.patch
          2 kB
          Jagadesh Kiran N
        2. MAPREDUCE-6496-01.patch
          2 kB
          Jagadesh Kiran N

        Activity

          People

            jagadesh.kiran Jagadesh Kiran N
            mpl Martin Petricek
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: