Skip to content

Commit 008eb08

Browse files
committed
Update Stepper in the library
1 parent ecf2518 commit 008eb08

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: scala2-library-cc/src/scala/collection/Stepper.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ trait Stepper[@specialized(Double, Int, Long) +A] {
5353
*
5454
* See method `trySplit` in [[java.util.Spliterator]].
5555
*/
56-
def trySplit(): Stepper[A]
56+
def trySplit(): Stepper[A]^{this}
5757

5858
/** Returns an estimate of the number of elements of this Stepper, or [[Long.MaxValue]]. See
5959
* method `estimateSize` in [[java.util.Spliterator]].
@@ -71,15 +71,15 @@ trait Stepper[@specialized(Double, Int, Long) +A] {
7171
* a [[java.util.Spliterator.OfInt]] (which is a `Spliterator[Integer]`) in the subclass [[IntStepper]]
7272
* (which is a `Stepper[Int]`).
7373
*/
74-
def spliterator[B >: A]: Spliterator[_]
74+
def spliterator[B >: A]: Spliterator[_]^{this}
7575

7676
/** Returns a Java [[java.util.Iterator]] corresponding to this Stepper.
7777
*
7878
* Note that the return type is `Iterator[_]` instead of `Iterator[A]` to allow returning
7979
* a [[java.util.PrimitiveIterator.OfInt]] (which is a `Iterator[Integer]`) in the subclass
8080
* [[IntStepper]] (which is a `Stepper[Int]`).
8181
*/
82-
def javaIterator[B >: A]: JIterator[_]
82+
def javaIterator[B >: A]: JIterator[_]^{this}
8383

8484
/** Returns an [[Iterator]] corresponding to this Stepper. Note that Iterators corresponding to
8585
* primitive Steppers box the elements.

0 commit comments

Comments
 (0)