Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-20528

Revise collections copying from iteration to built-in function

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha-1
    • 2.6.0, 2.4.18, 3.0.0-beta-1, 2.5.8
    • None
    • None
    • Reviewed

    Description

      Some collection codes in file
      StochasticLoadBalancer.java, AbstractHBaseTool.java, HFileInputFormat.java, Result.java, and WalPlayer.java, using iterations to copy whole data in collections. The iterations can just replace by just Colletions.addAll and Arrays.copyOf.

      Attachments

        Activity

          People

            jackyhobingo Hua-Yi Ho
            jackyhobingo Hua-Yi Ho
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: