Github user markhamstra commented on a diff in the pull request: https://github.com/apache/spark/pull/706#discussion_r12509377 --- Diff: project/SparkBuild.scala --- @@ -297,7 +273,7 @@ object SparkBuild extends Build { val chillVersion = "0.3.6" val codahaleMetricsVersion = "3.0.0" val jblasVersion = "1.2.3" - val jets3tVersion = if ("^2\\.[3-9]+".r.findFirstIn(hadoopVersion).isDefined) "0.9.0" else "0.7.1" + val jets3tVersion = "^2\\.[3-9]+".r.findFirstIn(hadoopVersion).fold("0.7.1")(_ => "0.9.0") --- End diff -- We discussed this a while ago, soon after Spark development moved to Scala 2.10. The overwhelming preference was that we use map/getOrElse instead of fold. When working on Spark, consider turning off that particular inspection and warning in the IntelliJ preferences.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---