This is an automated email from the ASF dual-hosted git repository.
dongjoon-hyun 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 b45e73059536 [SPARK-60938][CORE] Remove unused isJavaVersionAtLeast21
b45e73059536 is described below
commit b45e73059536b89baab8b54682f0a7106e675dc7
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Thu Nov 5 10:43:30 2026 -0800
[SPARK-60938][CORE] Remove unused isJavaVersionAtLeast21
### What changes were proposed in this pull request?
This PR aims to remove the unused `isJavaVersionAtLeast21` from
`SparkSystemUtils`.
### Why are the changes needed?
Apache Spark 5.0.0 requires Java 21 as the minimum version (SPARK-60669).
SPARK-60896 deliberately kept `isJavaVersionAtLeast21` until the golden file PR
(SPARK-60747) and the Hive guard PR (SPARK-60895) were merged. Both have been
merged, so the member now has no users and is always `true`.
### Does this PR introduce _any_ user-facing change?
No. `SparkSystemUtils` is `private[spark]`.
### How was this patch tested?
Pass the CIs. Also verified locally that `grep -rn isJavaVersionAtLeast21`
finds no remaining usage and that `build/sbt common-utils/compile core/compile`
succeeds.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Sonnet 5.5
Closes #60139 from dongjoon-hyun/SPARK-60938.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
.../src/main/scala/org/apache/spark/util/SparkSystemUtils.scala | 5 -----
1 file changed, 5 deletions(-)
diff --git
a/common/utils/src/main/scala/org/apache/spark/util/SparkSystemUtils.scala
b/common/utils/src/main/scala/org/apache/spark/util/SparkSystemUtils.scala
index 17f6296831fe..34aaaad13724 100644
--- a/common/utils/src/main/scala/org/apache/spark/util/SparkSystemUtils.scala
+++ b/common/utils/src/main/scala/org/apache/spark/util/SparkSystemUtils.scala
@@ -39,11 +39,6 @@ private[spark] trait SparkSystemUtils {
*/
val javaVersion = JavaUtils.javaVersion
- /**
- * Whether the underlying Java version is at least 21.
- */
- val isJavaVersionAtLeast21 = Runtime.version().feature() >= 21
-
/**
* Whether the underlying operating system is Windows.
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]