This is an automated email from the ASF dual-hosted git repository.

yangjie01 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 3bdcb2c1e295 [SPARK-53231][TESTS] Ban `com.google.common.collect.Sets`
3bdcb2c1e295 is described below

commit 3bdcb2c1e29549e39617edaab39f87dd18a23e2b
Author: Dongjoon Hyun <dongj...@apache.org>
AuthorDate: Sun Aug 10 19:38:45 2025 +0800

    [SPARK-53231][TESTS] Ban `com.google.common.collect.Sets`
    
    ### What changes were proposed in this pull request?
    
    This PR aims to ban `com.google.common.collect.Sets`.
    
    ### Why are the changes needed?
    
    Since Apache Spark already migrated to Java 9+ `Set.of` syntax, we had 
better prevent future regressions.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Pass the CIs.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #51957 from dongjoon-hyun/SPARK-53231.
    
    Authored-by: Dongjoon Hyun <dongj...@apache.org>
    Signed-off-by: yangjie01 <yangji...@baidu.com>
---
 dev/checkstyle.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev/checkstyle.xml b/dev/checkstyle.xml
index 08163a11d652..18774c5b46bb 100644
--- a/dev/checkstyle.xml
+++ b/dev/checkstyle.xml
@@ -191,6 +191,7 @@
             <property name="illegalClasses" 
value="org.apache.commons.lang3.SystemUtils" />
             <property name="illegalClasses" 
value="org.apache.hadoop.io.IOUtils" />
             <property name="illegalClasses" 
value="com.google.common.base.Strings" />
+            <property name="illegalClasses" 
value="com.google.common.collect.Sets" />
             <property name="illegalClasses" 
value="com.google.common.io.BaseEncoding" />
             <property name="illegalClasses" value="com.google.common.io.Files" 
/>
         </module>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to