[ 
https://issues.apache.org/jira/browse/SPARK-38337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hyukjin Kwon reassigned SPARK-38337:
------------------------------------

    Assignee: Yang Jie

> Replace `toIterator` with `iterator` for `IterableLike`/`IterableOnce` to 
> cleanup deprecated api usage
> ------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-38337
>                 URL: https://issues.apache.org/jira/browse/SPARK-38337
>             Project: Spark
>          Issue Type: Improvement
>          Components: DStreams, MLlib, Spark Core, SQL
>    Affects Versions: 3.3.0
>            Reporter: Yang Jie
>            Assignee: Yang Jie
>            Priority: Minor
>         Attachments: Screenshot_20220227-050659.png
>
>
> In Scala 2.12, {{IterableLike.toIterator}} identified as 
> {{{}@deprecatedOverriding{}}}:
>  
> {code:java}
> @deprecatedOverriding("toIterator should stay consistent with iterator for 
> all Iterables: override iterator instead.", "2.11.0") 
> override def toIterator: Iterator[A] = iterator {code}
> In Scala 2.13, {{IterableOnce.toIterator}} identified as {{{}@deprecated{}}}:
> {code:java}
> @deprecated("Use .iterator instead of .toIterator", "2.13.0") @`inline` final 
> def toIterator: Iterator[A] = iterator {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to