hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-7194) Fix findbugs "inefficient new String constructor" warning in DFSClient#PATH
Date Mon, 06 Oct 2014 20:57:34 GMT

     [ https://issues.apache.org/jira/browse/HDFS-7194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Colin Patrick McCabe updated HDFS-7194:
---------------------------------------
    Description: 
In recent PreCommit-HDFS-Build, 8325, 8324, 8323 etc, there is a findbugs warning:
{code}
Code	Warning
Dm	org.apache.hadoop.hdfs.DFSClient.<static initializer for DFSClient>() invokes inefficient
new String(String) constructor
{code}

  was:
In recent PreCommit-HDFS-Build, 8325, 8324, 8323 etc, there are findbugs warnings introduced
by earlier fixes.

E.g.
https://builds.apache.org/job/PreCommit-HDFS-Build/8324//artifact/patchprocess/newPatchFindbugsWarningshadoop-hdfs.html

{quote}
Bad practice Warnings

Code	Warning
Se	Class org.apache.hadoop.hdfs.protocol.datatransfer.ReplaceDatanodeOnFailure$Policy defines
non-transient non-serializable instance field condition
Performance Warnings

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



> Fix findbugs "inefficient new String constructor" warning in DFSClient#PATH
> ---------------------------------------------------------------------------
>
>                 Key: HDFS-7194
>                 URL: https://issues.apache.org/jira/browse/HDFS-7194
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Yongjun Zhang
>            Assignee: Yongjun Zhang
>            Priority: Trivial
>         Attachments: HDFS-7194.001.patch, HDFS-7194.002.patch
>
>
> In recent PreCommit-HDFS-Build, 8325, 8324, 8323 etc, there is a findbugs warning:
> {code}
> Code	Warning
> Dm	org.apache.hadoop.hdfs.DFSClient.<static initializer for DFSClient>() invokes
inefficient new String(String) constructor
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message