[ 
https://issues.apache.org/jira/browse/HADOOP-17726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17543419#comment-17543419
 ] 

Ayush Saxena commented on HADOOP-17726:
---------------------------------------

Can you link the guideline, what damage is this causing:
{code:java}
public static <E extends Comparable> TreeSet<E> newTreeSet() {
  return new TreeSet<E>(); {code}
What difference is if I call Sets.newTreeSet() vs new TreeSet()?

> Replace Sets#newHashSet() and newTreeSet() with constructors directly
> ---------------------------------------------------------------------
>
>                 Key: HADOOP-17726
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17726
>             Project: Hadoop Common
>          Issue Type: Task
>            Reporter: Viraj Jasani
>            Assignee: Samrat Deb
>            Priority: Major
>              Labels: beginner, beginner-friendly, newbie
>
> As per the guidelines provided by Guava Sets#newHashSet() and 
> Sets#newTreeSet(), we should get rid of them and use newHashSet<>() and 
> newTreeSet<>() directly.
> Once HADOOP-17115, HADOOP-17721, HADOOP-17722 and HADOOP-17720 are fixed, 
> please feel free to take this up.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to