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

using Math.abs(Random.getInt()) does not guarantee a positive number

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13.0
    • 0.14.0
    • None
    • None

    Description

      Findbugs suggested that we fix the potential for Integer.MIN_VALUE to slip through Math.abs.

      Attachments

        1. 1393.patch
          1 kB
          Owen O'Malley

        Activity

          People

            omalley Owen O'Malley
            omalley Owen O'Malley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: