Attila Doroszlai created HDDS-7834:
--------------------------------------

             Summary: Remove unnecessary streams
                 Key: HDDS-7834
                 URL: https://issues.apache.org/jira/browse/HDDS-7834
             Project: Apache Ozone
          Issue Type: Improvement
            Reporter: Attila Doroszlai
            Assignee: Attila Doroszlai


Streams are overkill for simple list/set conversion, when no 
filtering/transformation is applied, e.g.:

{code}
list.stream().collect(toSet())
{code}

or

{code}
set.stream().collect(toList())
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to