Skip to content

Commit

Permalink
Simplify fix since lexical comparison is sufficient to assert this
Browse files Browse the repository at this point in the history
  • Loading branch information
cl4es committed Feb 13, 2016
1 parent 33b2376 commit 68159d8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions project/SparkBuild.scala
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,8 @@ object SparkBuild extends PomBuild {
publishLocalBoth <<= Seq(publishLocal in MavenCompile, publishLocal).dependOn,

javacOptions in (Compile, doc) ++= {
val versionParts = System.getProperty("java.version").split("[+.\\-]+", 3)
val major = versionParts(0).toInt
if (major > 1 || (major == 1 && versionParts(1).toInt >= 8)) Seq("-Xdoclint:all", "-Xdoclint:-missing") else Seq.empty
val version = System.getProperty("java.version")
if (version >= "1.8.0") Seq("-Xdoclint:all", "-Xdoclint:-missing") else Seq.empty
},

javacJVMVersion := "1.7",
Expand Down

0 comments on commit 68159d8

Please sign in to comment.