Commit b03352b
### What changes were proposed in this pull request?
This PR proposes to move `isJavaVersionAtMost17` and `isJavaVersionAtLeast21` from `Utils.scala` in `core` to `SparkSystemUtils.scala` in `common/utils`
### Why are the changes needed?
To allow components which don't depend on `core` (like components under `common/utils`) use these methods. These utility methods can be commonly used like `javeVersion` in `SparkSystemUtils.scala`.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
GA.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #53108 from sarutak/move-java-version.
Authored-by: Kousuke Saruta <sarutak@amazon.co.jp>
Signed-off-by: yangjie01 <yangjie01@baidu.com>
1 parent fd683ce commit b03352b
File tree
2 files changed
+11
-10
lines changed- common/utils/src/main/scala/org/apache/spark/util
- core/src/main/scala/org/apache/spark/util
2 files changed
+11
-10
lines changedLines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
42 | 52 | | |
43 | 53 | | |
44 | 54 | | |
| |||
63 | 73 | | |
64 | 74 | | |
65 | 75 | | |
| 76 | + | |
66 | 77 | | |
67 | 78 | | |
68 | 79 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1855 | 1855 | | |
1856 | 1856 | | |
1857 | 1857 | | |
1858 | | - | |
1859 | | - | |
1860 | | - | |
1861 | | - | |
1862 | | - | |
1863 | | - | |
1864 | | - | |
1865 | | - | |
1866 | | - | |
1867 | | - | |
1868 | 1858 | | |
1869 | 1859 | | |
1870 | 1860 | | |
| |||
0 commit comments