Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-49879][CORE] Move
TransportCipherUtil
to a separate file to …
…eliminate Java compilation warnings ### What changes were proposed in this pull request? Run `build/mvn clean install -pl common/network-common`, we can see the following compilation warnings: ``` [WARNING] [Warn] /Users/yangjie01/SourceCode/git/spark-maven/common/network-common/src/main/java/org/apache/spark/network/crypto/CtrTransportCipher.java:73:11: auxiliary class TransportCipherUtil in /Users/yangjie01/SourceCode/git/spark-maven/common/network-common/src/main/java/org/apache/spark/network/crypto/TransportCipher.java should not be accessed from outside its own source file [WARNING] [Warn] /Users/yangjie01/SourceCode/git/spark-maven/common/network-common/src/main/java/org/apache/spark/network/crypto/GcmTransportCipher.java:63:15: auxiliary class TransportCipherUtil in /Users/yangjie01/SourceCode/git/spark-maven/common/network-common/src/main/java/org/apache/spark/network/crypto/TransportCipher.java should not be accessed from outside its own source file ``` So this pr moves `TransportCipherUtil` to a separate file to eliminate the aforementioned Java compilation warnings. ### Why are the changes needed? Fix compilation warnings. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? - Pass GitHub Actions - locally run `build/mvn clean install -pl common/network-common`, no longer have the aforementioned compilation warnings. ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#48352 from LuciferYang/Move-TransportCipherUtil. Authored-by: yangjie01 <yangjie01@baidu.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
- Loading branch information