Github user mateiz commented on a diff in the pull request:

    https://github.com/apache/spark/pull/799#discussion_r12723628
  
    --- Diff: core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala ---
    @@ -293,8 +299,8 @@ object SparkSubmit {
       }
     
       private def addJarToClasspath(localJar: String, loader: 
ExecutorURLClassLoader) {
    -    val localJarFile = new File(new URI(localJar).getPath())
    -    if (!localJarFile.exists()) {
    +    val localJarFile = new File(new URI(localJar).getPath)
    +    if (!localJarFile.exists) {
    --- End diff --
    
    Should use parens on `exists()` because it's not just a field access or 
getter


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to