Skip to content

Commit

Permalink
[SPARK-49534][CORE][FOLLOWUP] Update outdated code comments related t…
Browse files Browse the repository at this point in the history
…o the `AbstractCommandBuilder#isJarAvailable` method

### What changes were proposed in this pull request?
This pr just updates the outdated code comments related to the `AbstractCommandBuilder#isJarAvailable` method.

### Why are the changes needed?
Update outdated code comments.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Pass GitHub Actions

### Was this patch authored or co-authored using generative AI tooling?
No

Closes #48032 from LuciferYang/SPARK-49534-FOLLOWUP.

Authored-by: yangjie01 <[email protected]>
Signed-off-by: yangjie01 <[email protected]>
  • Loading branch information
LuciferYang committed Sep 9, 2024
1 parent 23d22b1 commit 8bc26d0
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,11 @@ private void addToClassPath(Set<String> cp, String entries) {
}

/**
* Checks if the spark-hive jar file is available in the specified directory.
* Checks if a JAR file with a specific prefix is available in the given directory.
*
* @param jarsDir the directory to search for spark-hive jar files
* @return true if a file starting with "spark-hive_" is found, false otherwise
* @param jarsDir the directory to search for JAR files
* @param jarNamePrefix the prefix of the JAR file name to look for
* @return true if a JAR file with the specified prefix is found, false otherwise
*/
private boolean isJarAvailable(String jarsDir, String jarNamePrefix) {
if (jarsDir != null) {
Expand Down

0 comments on commit 8bc26d0

Please sign in to comment.