You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/04/28 10:50:00 UTC

[jira] [Assigned] (SPARK-39056) Use `Collections.singletonList` instead of `Arrays.asList` when there is only one argument

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

Apache Spark reassigned SPARK-39056:
------------------------------------

    Assignee: Apache Spark

>   Use `Collections.singletonList` instead of `Arrays.asList` when there is only one argument
> --------------------------------------------------------------------------------------------
>
>                 Key: SPARK-39056
>                 URL: https://issues.apache.org/jira/browse/SPARK-39056
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core, SQL
>    Affects Versions: 3.4.0
>            Reporter: Yang Jie
>            Assignee: Apache Spark
>            Priority: Minor
>
> Use `Collections.singletonList` instead of `Arrays.asList` when there is only one argument.
>  
> before
> {code:java}
> List<String> one = Arrays.asList("one"); {code}
> after
> {code:java}
> List<String> one = Collections.singletonList("one"); {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org