srowen commented on a change in pull request #26911: Remove usage of Guava that breaks in 27; replace with workalikes URL: https://github.com/apache/spark/pull/26911#discussion_r358416625
########## File path: core/src/main/scala/org/apache/spark/rdd/HadoopRDD.scala ########## @@ -405,9 +405,9 @@ private[spark] object HadoopRDD extends Logging { * The three methods below are helpers for accessing the local map, a property of the SparkEnv of * the local process. */ - def getCachedMetadata(key: String): Any = SparkEnv.get.hadoopJobMetadata.get(key) + def getCachedMetadata(key: String): AnyRef = SparkEnv.get.hadoopJobMetadata.get(key) Review comment: Problem here was using a non-ref type in a Java Map. This is only really used for a JobConf anyway ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org