You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/11/02 01:06:00 UTC
[jira] [Commented] (HBASE-19682) Use Collections.emptyList() For
Empty List Values
[ https://issues.apache.org/jira/browse/HBASE-19682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16672433#comment-16672433 ]
Hudson commented on HBASE-19682:
--------------------------------
Results for branch branch-2
[build #1477 on builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/1477/]: (x) *{color:red}-1 overall{color}*
----
details (if available):
(/) {color:green}+1 general checks{color}
-- For more information [see general report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/1477//General_Nightly_Build_Report/]
(x) {color:red}-1 jdk8 hadoop2 checks{color}
-- For more information [see jdk8 (hadoop2) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/1477//JDK8_Nightly_Build_Report_(Hadoop2)/]
(x) {color:red}-1 jdk8 hadoop3 checks{color}
-- For more information [see jdk8 (hadoop3) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/1477//JDK8_Nightly_Build_Report_(Hadoop3)/]
(/) {color:green}+1 source release artifact{color}
-- See build output for details.
(/) {color:green}+1 client integration test{color}
> Use Collections.emptyList() For Empty List Values
> -------------------------------------------------
>
> Key: HBASE-19682
> URL: https://issues.apache.org/jira/browse/HBASE-19682
> Project: HBase
> Issue Type: Improvement
> Affects Versions: 3.0.0
> Reporter: BELUGA BEHR
> Assignee: BELUGA BEHR
> Priority: Minor
> Fix For: 3.0.0, 2.2.0
>
> Attachments: HBASE-19682.1.patch, HBASE-19682.2.patch, HBASE-19682.3.1.patch, HBASE-19682.4.patch, HBASE-19682.5.patch, HBASE-19682.6.patch, HBASE-19682.7.patch, example.patch
>
>
> Use {{Collection.emptyList()}} for returning an empty list instead of {{return new ArrayList<> ()}}. The default constructor creates a buffer of size 10 for _ArrayList_ therefore, returning this static value saves on some memory and GC pressure and saves time not having to allocate a new internally buffer for each instantiation.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)