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

Remove duplicate initialization in StringUtils.getStringCollection

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.2.0
    • 2.3.0
    • None
    • None
    • Reviewed

    Description

      The values is initialized twice.

      StringUtils.java
       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>();
      

      Attachments

        1. HADOOP-10208.patch
          0.7 kB
          Benoy Antony
        2. HADOOP-10208.patch
          0.9 kB
          Benoy Antony
        3. HADOOP-10208.patch
          1 kB
          Benoy Antony

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            benoyantony Benoy Antony Assign to me
            benoyantony Benoy Antony
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment