Skip to content

fix warnings. avoid IterableOnce deprecated methods #7150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 3, 2018

Conversation

xuwei-k
Copy link
Contributor

@xuwei-k xuwei-k commented Aug 30, 2018

No description provided.

@scala-jenkins scala-jenkins added this to the 2.13.0-RC1 milestone Aug 30, 2018
else {
prefix.size match {
prefix.iterator.size match {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this changes fix scala/bug#11122 by chance. But current implementation not efficient.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert this changes. create another pull request #7153

@xuwei-k xuwei-k force-pushed the IterableOnce-deprecated-methods branch from 88148c6 to b8849fc Compare August 30, 2018 09:08
@@ -396,7 +396,7 @@ final class LazyList[+A] private(private[this] var lazyState: () => LazyList.Sta

override def zip[B](that: collection.IterableOnce[B]): LazyList[(A, B)] =
newLL {
if (this.isEmpty || that.isEmpty) State.Empty
if (this.isEmpty || that.iterator.isEmpty) State.Empty
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can leave these LazyList fixes out - they will be fixed in #7139

@xuwei-k xuwei-k force-pushed the IterableOnce-deprecated-methods branch from b8849fc to 1095495 Compare August 31, 2018 11:07
Copy link
Contributor

@NthPortal NthPortal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lrytz lrytz merged commit 94c5360 into scala:2.13.x Sep 3, 2018
@xuwei-k xuwei-k deleted the IterableOnce-deprecated-methods branch September 3, 2018 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants