You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Xiaoqiao He (Jira)" <ji...@apache.org> on 2020/09/12 08:54:00 UTC
[jira] [Updated] (HADOOP-17152) Implement wrapper for guava
newArrayList and newLinkedList
[ https://issues.apache.org/jira/browse/HADOOP-17152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiaoqiao He updated HADOOP-17152:
---------------------------------
Target Version/s: 3.3.1, 3.4.0, 3.1.5, 3.2.3 (was: 3.2.2, 3.3.1, 3.4.0, 3.1.5)
Updated the target version to 3.2.3 for preparing 3.2.2 release. Please let me know if it is blocker for you. Thanks.
> Implement wrapper for guava newArrayList and newLinkedList
> ----------------------------------------------------------
>
> Key: HADOOP-17152
> URL: https://issues.apache.org/jira/browse/HADOOP-17152
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: common
> Reporter: Ahmed Hussein
> Assignee: Ahmed Hussein
> Priority: Major
>
> guava Lists class provide some wrappers to java ArrayList and LinkedList.
> Replacing the method calls throughout the code can be invasive because guava offers some APIs that do not exist in java util. This Jira is the task of implementing those missing APIs in hadoop common in a step toward getting rid of guava.
> * create a wrapper class org.apache.hadoop.util.unguava.ListsĀ
> * implement the following interfaces in Lists:
> ** public static <E> ArrayList<E> newArrayList()
> ** public static <E> ArrayList<E> newArrayList(E... elements)
> ** public static <E> ArrayList<E> newArrayList(Iterable<? extends E> elements)
> ** public static <E> ArrayList<E> newArrayList(Iterator<? extends E> elements)
> ** public static <E> ArrayList<E> newArrayListWithCapacity(int initialArraySize)
> ** public static <E> LinkedList<E> newLinkedList()
> ** public static <E> LinkedList<E> newLinkedList(Iterable<? extends E> elements)
> ** public static <E> List<E> asList(@Nullable E first, E[] rest)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org