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

Remove duplicate call of Path#normalizePath during initialization.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.23.0
    • 0.23.1
    • fs
    • None
    • Reviewed
    • path

    Description

      Found during code reading on HADOOP-6490, there seems to be an unnecessary call of normalizePath(...) being made in the constructor Path(Path, Path). Since initialize(...) normalizes its received path string already, its unnecessary to do it to the path parameter in the constructor's call of the same.

      Attachments

        1. HADOOP-7736.patch
          0.7 kB
          Harsh J

        Activity

          People

            qwertymaniac Harsh J
            qwertymaniac Harsh J
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: