Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7194

Fix findbugs "inefficient new String constructor" warning in DFSClient#PATH

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      Description

      In recent PreCommit-HDFS-Build, 8325, 8324, 8323 etc, there is a findbugs warning:

      Code	Warning
      Dm	org.apache.hadoop.hdfs.DFSClient.<static initializer for DFSClient>() invokes inefficient new String(String) constructor
      

        Attachments

        1. HDFS-7194.001.patch
          2 kB
          Yongjun Zhang
        2. HDFS-7194.002.patch
          0.9 kB
          Yongjun Zhang

          Issue Links

            Activity

              People

              • Assignee:
                yzhangal Yongjun Zhang
                Reporter:
                yzhangal Yongjun Zhang
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: