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

Remove confusing comment in Path#isAbsolute()

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.23.0
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: fs
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The method is checking for absolute path correctly. When scheme and authority are present, the path is absolute. So the following comment needs to be removed.

        /**
         * There is some ambiguity here. An absolute path is a slash
         * relative name without a scheme or an authority.
         * So either this method was incorrectly named or its
         * implementation is incorrect. This method returns true
         * even if there is a scheme and authority.
         */
      

        Attachments

        1. HADOOP-8174.patch
          1 kB
          Harsh J
        2. HADOOP-8174.txt
          0.9 kB
          Suresh Srinivas

          Activity

            People

            • Assignee:
              sureshms Suresh Srinivas
              Reporter:
              sureshms Suresh Srinivas
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: