Skip to content

Commit 1827c2d

Browse files
committed
[SPARK-22852][BUILD] Exclude -Xlint:unchecked from sbt javadoc flags
1 parent 792915c commit 1827c2d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

project/SparkBuild.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,14 @@ object SparkBuild extends PomBuild {
239239

240240
javacOptions in Compile ++= Seq(
241241
"-encoding", "UTF-8",
242-
"-source", javacJVMVersion.value,
243-
"-Xlint:unchecked"
242+
"-source", javacJVMVersion.value
244243
),
245-
// This -target option cannot be set in the Compile configuration scope since `javadoc` doesn't
246-
// play nicely with it; see https://github.com/sbt/sbt/issues/355#issuecomment-3817629 for
247-
// additional discussion and explanation.
244+
// This -target and Xlint:unchecked options cannot be set in the Compile configuration scope since
245+
// `javadoc` doesn't play nicely with them; see https://github.com/sbt/sbt/issues/355#issuecomment-3817629
246+
// for additional discussion and explanation.
248247
javacOptions in (Compile, compile) ++= Seq(
249-
"-target", javacJVMVersion.value
248+
"-target", javacJVMVersion.value,
249+
"-Xlint:unchecked"
250250
),
251251

252252
scalacOptions in Compile ++= Seq(

0 commit comments

Comments
 (0)