LuciferYang opened a new pull request #30784:
URL: https://github.com/apache/spark/pull/30784


   ### What changes were proposed in this pull request?
   
   Similar to SPARK-33441, this pr add `unused-import` check to Maven 
compilation process. After this pr `unused-import` will trigger Maven 
compilation error.
   
   For Scala 2.13 profile, this pr also left TODO(SPARK-33499) similar to 
SPARK-33441 because `scala.language.higherKinds` no longer needs to be imported 
explicitly since Scala 2.13.1
   
   
   ### Why are the changes needed?
   Let Maven build also check for unused imports as compilation error.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   
   - Pass the Jenkins or GitHub Action
   
   - Local manual test:add an unused import intentionally to trigger maven 
compilation error.
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to