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

ValueHistogram.addNextValue(Object) ignores return value of String.substring(int, int)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.12.3
    • Fix Version/s: 0.13.0
    • Component/s: None
    • Labels:
      None

      Description

      ValueHistogram.java line 54

      The String.substring method doesn't update the object it operates on. Instead, it returns a new String object. This return value is ignored, which must be a bug.

        Attachments

        1. patch-1356.txt
          1 kB
          Runping Qi

          Activity

            People

            • Assignee:
              runping Runping Qi
              Reporter:
              nidaley Nigel Daley
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: