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

SwiftNativeFileSystem Internal method has not been used

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.8.1
    • Fix Version/s: None
    • Component/s: fs/swift
    • Labels:
      None

      Description

      i found the method is unused method,and is internal implementation.In order to keep the code clean,I think it should be deleted or marked as unused.

      /**

      • internal implementation of directory creation.
        *
      • @param path path to file
      • @return boolean file is created; false: no need to create
      • @throws IOException if specified path is file instead of directory
        */
        private boolean mkdir(Path path) throws IOException
        Unknown macro: { Path directory = makeAbsolute(path); boolean shouldCreate = shouldCreate(directory); if (shouldCreate) { forceMkdir(directory); } return shouldCreate; }

        Attachments

        1. HADOOP-14595.001.patch
          2 kB
          Yasen Liu

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Yasen Liu Yasen Liu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: