hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10208) Remove duplicate initialization in StringUtils.getStringCollection
Date Thu, 09 Jan 2014 11:01:58 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-10208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13866542#comment-13866542
] 

Hudson commented on HADOOP-10208:
---------------------------------

FAILURE: Integrated in Hadoop-Yarn-trunk #447 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/447/])
HADOOP-10208. Remove duplicate initialization in StringUtils.getStringCollection. Contributed
by Benoy Antony. (jing9: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1556602)
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/StringUtils.java


> Remove duplicate initialization in StringUtils.getStringCollection
> ------------------------------------------------------------------
>
>                 Key: HADOOP-10208
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10208
>             Project: Hadoop Common
>          Issue Type: Improvement
>    Affects Versions: 2.2.0
>            Reporter: Benoy Antony
>            Assignee: Benoy Antony
>            Priority: Trivial
>             Fix For: 2.4.0
>
>         Attachments: HADOOP-10208.patch, HADOOP-10208.patch, HADOOP-10208.patch
>
>
> The *values* is initialized twice.
> {code:title=StringUtils.java|borderStyle=solid}
>  public static Collection<String> getStringCollection(String str){
>     List<String> values = new ArrayList<String>();
>     if (str == null)
>       return values;
>     StringTokenizer tokenizer = new StringTokenizer (str,",");
>     values = new ArrayList<String>();
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message