=str #25091 javadsl ZipWithIndex to return java.lang.Long

This commit is contained in:
Stefano Bonetti 2018-05-14 14:22:35 +01:00 committed by Johan Andrén
parent 7591571372
commit db057df5d9
3 changed files with 6 additions and 6 deletions

View file

@ -1042,8 +1042,8 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
*
* '''Cancels when''' downstream cancels
*/
def zipWithIndex: javadsl.Source[Pair[Out @uncheckedVariance, Long], Mat] =
new Source(delegate.zipWithIndex.map { case (elem, index) Pair(elem, index) })
def zipWithIndex: javadsl.Source[Pair[Out @uncheckedVariance, java.lang.Long], Mat] =
new Source(delegate.zipWithIndex.map { case (elem, index) Pair[Out, java.lang.Long](elem, index) })
/**
* Shortcut for running this `Source` with a foreach procedure. The given procedure is invoked