LuciferYang commented on PR #43713:
URL: https://github.com/apache/spark/pull/43713#issuecomment-1803099217

   hmm...  if scalac doesn't report this warning, my personal suggestion is to 
leave it unfixed. The inheritance hierarchy is as follows:
   
   `AttributeMap` <- `immutable.Map` <- `immutable.MapOps` <- 
`collection.MapOps`
   
   Although the `+` of `collection.MapOps` is marked as deprecated, the `+` of 
`immutable.MapOps` does not appear to be deprecated.
   
   ```scala
     /**
       * Alias for `updated`
       *
       * @param kv the key/value pair.
       * @tparam V1 the type of the value in the key/value pair.
       * @return A new map with the new binding added to this map.
       */
     override def + [V1 >: V](kv: (K, V1)): CC[K, V1] = updated(kv._1, kv._2)
   ```


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to