GitHub user srowen opened a pull request:

    https://github.com/apache/spark/pull/11493

    [SPARK-13423] [HOTFIX] Static analysis fixes for 2.x / fixed for Scala 2.10

    ## What changes were proposed in this pull request?
    
    Fixes compile problem due to inadvertent use of `Option.contains`, only in 
Scala 2.11. The change should have been to replace `Option.exists(_ == x)` with 
`== Some(x)`. Replacing exists with contains only makes sense for collections. 
Replacing use of `Option.exists` still makes sense though as it's misleading.
    
    ## How was this patch tested?
    
    Jenkins tests / compilation
    
    (If this patch involves UI changes, please attach a screenshot; otherwise, 
remove this)


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/srowen/spark SPARK-13423.2

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/11493.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #11493
    
----
commit 217dde3483f6f031c5a5a13fcb0809382f89c355
Author: Sean Owen <[email protected]>
Date:   2016-03-03T10:25:44Z

    Fixes compile problem due to inadvertent use of Option.contains, only in 
Scala 2.11

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to