LuciferYang opened a new pull request #35665:
URL: https://github.com/apache/spark/pull/35665


   ### What changes were proposed in this pull request?
   In Scala 2.12, `IterableLike.toIterator` identified as 
`@deprecatedOverriding`:
   ```scala
   @deprecatedOverriding("toIterator should stay consistent with iterator for 
all Iterables: override iterator instead.", "2.11.0")
   override def toIterator: Iterator[A] = iterator
   ```
   
   In Scala 2.13, `IterableOnce.toIterator`  identified as `@deprecated`:
   
   ```scala
     @deprecated("Use .iterator instead of .toIterator", "2.13.0")
     @`inline` final def toIterator: Iterator[A] = iterator
   ```
   
   This PR replaces `toIterator` with `iterator` as recommended by scaladoc as 
above.
   
   ### Why are the changes needed?
   Cleanup deprecated api usage
   
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   
   ### How was this patch tested?
   Pass GA


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