Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

method apply in trait WithResult is deprecated #223

Closed
JPrevost opened this issue Jun 9, 2015 · 0 comments · Fixed by #228
Closed

method apply in trait WithResult is deprecated #223

JPrevost opened this issue Jun 9, 2015 · 0 comments · Fixed by #228
Assignees
Milestone

Comments

@JPrevost
Copy link
Member

JPrevost commented Jun 9, 2015

Deprecation warning in Play 2.4:

[warn] /app/models/Subscriber.scala:241: method apply in trait WithResult is deprecated: Use [[fold]], [[foldWhile]] or [[withResult]] instead, which manages resources and memory
[warn]     rows().map(row => List(row[Int]("total"), row[Int]("deliverCount"), row[Int]("discardCount"))).head
[warn]     ^
@JPrevost JPrevost mentioned this issue Jun 9, 2015
@JPrevost JPrevost self-assigned this Jun 10, 2015
JPrevost added a commit that referenced this issue Jun 15, 2015
closes #223

Based on the play24 branch so needs to be added after #224 is merged
@JPrevost JPrevost added this to the m7 milestone Jun 18, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant