-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-43849][BUILD] Enable unused imports check for Scala 2.13 #41356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2855,9 +2855,9 @@ | |
| <arg>-explaintypes</arg> | ||
| <arg>-target:jvm-1.8</arg> | ||
| <arg>-Wconf:cat=deprecation:wv,any:e</arg> | ||
| <arg>-Wunused:imports</arg> | ||
| <!-- | ||
| TODO(SPARK-33805): Undo the corresponding deprecated usage suppression rule after fixed | ||
| <arg>-Wunused:imports</arg> | ||
| --> | ||
| <arg>-Wconf:cat=scaladoc:wv</arg> | ||
| <arg>-Wconf:cat=lint-multiarg-infix:wv</arg> | ||
|
|
@@ -2891,6 +2891,13 @@ | |
| <arg>-Wconf:cat=unchecked&msg=outer reference:s</arg> | ||
| <arg>-Wconf:cat=unchecked&msg=eliminated by erasure:s</arg> | ||
| <arg>-Wconf:msg=^(?=.*?a value of type)(?=.*?cannot also be).+$:s</arg> | ||
|
|
||
|
||
| <!-- | ||
| TODO(SPARK-43850): Remove the following suppression rules and remove `import scala.language.higherKinds` | ||
| from the corresponding files when Scala 2.12 is no longer supported. | ||
| --> | ||
| <arg>-Wconf:cat=unused-imports&src=org\/apache\/spark\/graphx\/impl\/VertexPartitionBase.scala:s</arg> | ||
| <arg>-Wconf:cat=unused-imports&src=org\/apache\/spark\/graphx\/impl\/VertexPartitionBaseOps.scala:s</arg> | ||
| </args> | ||
| <jvmArgs> | ||
| <jvmArg>-Xss128m</jvmArg> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,7 @@ | |
|
|
||
| package org.apache.spark.sql.catalyst.expressions | ||
|
|
||
| import scala.collection.{mutable, IterableFactory, IterableOps} | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| import scala.collection.mutable | ||
| import scala.collection.mutable.ArrayBuffer | ||
|
|
||
| object ExpressionSet { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scala 2.13 checked them unused as they have already been imports in line 31