diff options
author | Sean Owen <sowen@cloudera.com> | 2016-03-03 15:11:02 +0000 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-03-03 15:11:02 +0000 |
commit | 645c3a85e2029928d37ec2de9ef5a2d884620b9b (patch) | |
tree | a04f4c6e0f7136d16c44ef3600858990103b8bad /external/zeromq | |
parent | b5f02d6743ecb1633b7b13382f76cb8bfc2aa95c (diff) | |
download | spark-645c3a85e2029928d37ec2de9ef5a2d884620b9b.tar.gz spark-645c3a85e2029928d37ec2de9ef5a2d884620b9b.tar.bz2 spark-645c3a85e2029928d37ec2de9ef5a2d884620b9b.zip |
[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)
Author: Sean Owen <sowen@cloudera.com>
Closes #11493 from srowen/SPARK-13423.2.
Diffstat (limited to 'external/zeromq')
0 files changed, 0 insertions, 0 deletions