You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean R. Owen (Jira)" <ji...@apache.org> on 2020/12/07 15:48:00 UTC

[jira] [Commented] (SPARK-33346) Change the never changed var to val

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

Sean R. Owen commented on SPARK-33346:
--------------------------------------

If you find cases like this that can be changed, yes please change them. I doubt there are many and those ought to be clear improvements.

> Change the never changed var to val
> -----------------------------------
>
>                 Key: SPARK-33346
>                 URL: https://issues.apache.org/jira/browse/SPARK-33346
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core, SQL
>    Affects Versions: 3.1.0
>            Reporter: Yang Jie
>            Priority: Minor
>
> Some local variables are declared as "var", but they are never reassigned and should be declared as "val".



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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