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 2017/07/14 07:56:00 UTC

[jira] [Commented] (SPARK-21415) Triage scapegoat warnings, part 1

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

Apache Spark commented on SPARK-21415:
--------------------------------------

User 'srowen' has created a pull request for this issue:
https://github.com/apache/spark/pull/18635

> Triage scapegoat warnings, part 1
> ---------------------------------
>
>                 Key: SPARK-21415
>                 URL: https://issues.apache.org/jira/browse/SPARK-21415
>             Project: Spark
>          Issue Type: Improvement
>          Components: GraphX, ML, Spark Core, SQL, Structured Streaming
>    Affects Versions: 2.3.0
>            Reporter: Sean Owen
>            Assignee: Sean Owen
>            Priority: Minor
>
> Following the results of the scapegoat plugin at https://docs.google.com/spreadsheets/d/1z7xNMjx7VCJLCiHOHhTth7Hh4R0F6LwcGjEwCDzrCiM/edit#gid=767668040 and some initial triage, I'd like to address all of the valid instances of some classes of warning:
> - BigDecimal double constructor
> - Catching NPE
> - Finalizer without super
> - List.size is O(n)
> - Prefer Seq.empty
> - Prefer Set.empty
> - reverse.map instead of reverseMap
> - Type shadowing
> - Unnecessary if condition.
> - Use .log1p
> - Var could be val



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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