Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/12520#issuecomment-212953102
  
    Actually, from skimming the code base, I think you've almost got all 
instances where valueOf could be parseX. Go for a clean sweep and update the 
JIRA. I see the following:
    
    PartitioningUtils
    
    ```
            val code: Int = try {
              Integer.valueOf(path.substring(i + 1, i + 3), 16)
            } catch { case e: Exception =>
              -1: Integer
            }
    ```
    
    ```
            val code = try {
              Integer.parseInt(path.substring(i + 1, i + 3), 16)
            } catch { 
              case e: Exception => -1
            }
    ```
    
    SparkHadoopUtil
    
    ```
        val yarnMode = java.lang.Boolean.valueOf(
            System.getProperty("SPARK_YARN_MODE", 
System.getenv("SPARK_YARN_MODE")))
    ```
    Similarly in YarnSparkHadoopUtil


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to