You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "taiyinglee (JIRA)" <ji...@apache.org> on 2018/06/19 01:55:00 UTC

[jira] [Reopened] (HBASE-20737) put collection into ArrayList instead of addAll function

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

taiyinglee reopened HBASE-20737:
--------------------------------

> put collection into ArrayList instead of addAll function
> --------------------------------------------------------
>
>                 Key: HBASE-20737
>                 URL: https://issues.apache.org/jira/browse/HBASE-20737
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 3.0.0
>            Reporter: taiyinglee
>            Assignee: taiyinglee
>            Priority: Trivial
>             Fix For: 3.0.0, 2.1.0
>
>         Attachments: HBASE-20737.v0.patch, HBASE-20737.v0.patch
>
>
> [https://docs.oracle.com/javase/7/docs/api/java/util/Collection.html]
> [https://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html]
> [https://docs.oracle.com/javase/7/docs/api/java/util/Set.html]
>  
> /hbase/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ClusterStatusPublisher.java
> change
> List<Map.Entry<ServerName, Integer>> entries = new ArrayList<>();
>  entries.addAll(lastSent.entrySet());
> to
> List<Map.Entry<ServerName, Integer>> entries = new ArrayList<>(lastSent.entrySet());



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)