1515import java .util .stream .*;
1616
1717import scala .collection .*;
18- import scala .jdk .StreamConverters ;
18+ import scala .jdk .javaapi . StreamConverters ;
1919
2020/**
2121 * This class contains static utility methods for creating Java Streams from Scala Collections, similar
@@ -142,7 +142,7 @@ public static <V> Stream<V> streamAccumulatedValues(Map<?, V> coll) {
142142 * @return A DoubleStream view of the collection which, by default, executes sequentially.
143143 */
144144 public static DoubleStream doubleStream (IterableOnce <Double > coll ) {
145- return StreamConverters .asJavaSeqDoubleStream (( IterableOnce < Object >)( Object ) coll );
145+ return StreamConverters .asJavaSeqDoubleStream (coll );
146146 }
147147
148148 /**
@@ -183,7 +183,7 @@ public static DoubleStream doubleStreamValues(Map<?, Double> coll) {
183183 * @return A DoubleStream view of the collection which, by default, executes sequentially.
184184 */
185185 public static DoubleStream doubleStreamAccumulated (IterableOnce <Double > coll ) {
186- return StreamConverters .asJavaSeqDoubleStream (scala .jdk .DoubleAccumulator$ .MODULE$ .fromSpecific ((IterableOnce <Object >)(Object )coll ));
186+ return StreamConverters .asJavaSeqDoubleStream (( IterableOnce < Double >)( Object ) scala .jdk .DoubleAccumulator$ .MODULE$ .fromSpecific ((IterableOnce <Object >)(Object )coll ));
187187 }
188188
189189 /**
@@ -196,7 +196,7 @@ public static DoubleStream doubleStreamAccumulated(IterableOnce<Double> coll) {
196196 * @return A DoubleStream view of the collection which, by default, executes sequentially.
197197 */
198198 public static DoubleStream doubleStreamAccumulatedKeys (Map <Double , ?> coll ) {
199- return StreamConverters .asJavaSeqDoubleStream (scala .jdk .DoubleAccumulator$ .MODULE$ .fromSpecific ((IterableOnce <Object >)(Object )coll .keysIterator ()));
199+ return StreamConverters .asJavaSeqDoubleStream (( IterableOnce < Double >)( Object ) scala .jdk .DoubleAccumulator$ .MODULE$ .fromSpecific ((IterableOnce <Object >)(Object )coll .keysIterator ()));
200200 }
201201
202202 /**
@@ -209,7 +209,7 @@ public static DoubleStream doubleStreamAccumulatedKeys(Map<Double, ?> coll) {
209209 * @return A DoubleStream view of the collection which, by default, executes sequentially.
210210 */
211211 public static DoubleStream doubleStreamAccumulatedValues (Map <?, Double > coll ) {
212- return StreamConverters .asJavaSeqDoubleStream (scala .jdk .DoubleAccumulator$ .MODULE$ .fromSpecific ((IterableOnce <Object >)(Object )coll .valuesIterator ()));
212+ return StreamConverters .asJavaSeqDoubleStream (( IterableOnce < Double >)( Object ) scala .jdk .DoubleAccumulator$ .MODULE$ .fromSpecific ((IterableOnce <Object >)(Object )coll .valuesIterator ()));
213213 }
214214
215215 /////////////////
@@ -227,7 +227,7 @@ public static DoubleStream doubleStreamAccumulatedValues(Map<?, Double> coll) {
227227 * @return A IntStream view of the collection which, by default, executes sequentially.
228228 */
229229 public static IntStream intStream (IterableOnce <Integer > coll ) {
230- return StreamConverters .asJavaSeqIntStream (( IterableOnce < Object >)( Object ) coll );
230+ return StreamConverters .asJavaSeqIntStream (coll );
231231 }
232232
233233 /**
@@ -268,7 +268,7 @@ public static IntStream intStreamValues(Map<?, Integer> coll) {
268268 * @return A IntStream view of the collection which, by default, executes sequentially.
269269 */
270270 public static IntStream intStreamAccumulated (IterableOnce <Integer > coll ) {
271- return StreamConverters .asJavaSeqIntStream (scala .jdk .IntAccumulator$ .MODULE$ .fromSpecific ((IterableOnce <Object >)(Object )coll ));
271+ return StreamConverters .asJavaSeqIntStream (( IterableOnce < Integer >)( Object ) scala .jdk .IntAccumulator$ .MODULE$ .fromSpecific ((IterableOnce <Object >)(Object )coll ));
272272 }
273273
274274 /**
@@ -281,7 +281,7 @@ public static IntStream intStreamAccumulated(IterableOnce<Integer> coll) {
281281 * @return A IntStream view of the collection which, by default, executes sequentially.
282282 */
283283 public static IntStream intStreamAccumulatedKeys (Map <Integer , ?> coll ) {
284- return StreamConverters .asJavaSeqIntStream (scala .jdk .IntAccumulator$ .MODULE$ .fromSpecific ((IterableOnce <Object >)(Object )coll .keysIterator ()));
284+ return StreamConverters .asJavaSeqIntStream (( IterableOnce < Integer >)( Object ) scala .jdk .IntAccumulator$ .MODULE$ .fromSpecific ((IterableOnce <Object >)(Object )coll .keysIterator ()));
285285 }
286286
287287 /**
@@ -294,7 +294,7 @@ public static IntStream intStreamAccumulatedKeys(Map<Integer, ?> coll) {
294294 * @return A IntStream view of the collection which, by default, executes sequentially.
295295 */
296296 public static IntStream intStreamAccumulatedValues (Map <?, Integer > coll ) {
297- return StreamConverters .asJavaSeqIntStream (scala .jdk .IntAccumulator$ .MODULE$ .fromSpecific ((IterableOnce <Object >)(Object )coll .valuesIterator ()));
297+ return StreamConverters .asJavaSeqIntStream (( IterableOnce < Integer >)( Object ) scala .jdk .IntAccumulator$ .MODULE$ .fromSpecific ((IterableOnce <Object >)(Object )coll .valuesIterator ()));
298298 }
299299
300300 //////////////////
@@ -312,7 +312,7 @@ public static IntStream intStreamAccumulatedValues(Map<?, Integer> coll) {
312312 * @return A LongStream view of the collection which, by default, executes sequentially.
313313 */
314314 public static LongStream longStream (IterableOnce <Long > coll ) {
315- return StreamConverters .asJavaSeqLongStream (( IterableOnce < Object >)( Object ) coll );
315+ return StreamConverters .asJavaSeqLongStream (coll );
316316 }
317317
318318 /**
@@ -353,7 +353,7 @@ public static LongStream longStreamValues(Map<?, Long> coll) {
353353 * @return A LongStream view of the collection which, by default, executes sequentially.
354354 */
355355 public static LongStream longStreamAccumulated (IterableOnce <Long > coll ) {
356- return StreamConverters .asJavaSeqLongStream (scala .jdk .LongAccumulator$ .MODULE$ .fromSpecific ((IterableOnce <Object >)(Object )coll ));
356+ return StreamConverters .asJavaSeqLongStream (( IterableOnce < Long >)( Object ) scala .jdk .LongAccumulator$ .MODULE$ .fromSpecific ((IterableOnce <Object >)(Object )coll ));
357357 }
358358
359359 /**
@@ -366,7 +366,7 @@ public static LongStream longStreamAccumulated(IterableOnce<Long> coll) {
366366 * @return A LongStream view of the collection which, by default, executes sequentially.
367367 */
368368 public static LongStream longStreamAccumulatedKeys (Map <Long , ?> coll ) {
369- return StreamConverters .asJavaSeqLongStream (scala .jdk .LongAccumulator$ .MODULE$ .fromSpecific ((IterableOnce <Object >)(Object )coll .keysIterator ()));
369+ return StreamConverters .asJavaSeqLongStream (( IterableOnce < Long >)( Object ) scala .jdk .LongAccumulator$ .MODULE$ .fromSpecific ((IterableOnce <Object >)(Object )coll .keysIterator ()));
370370 }
371371
372372 /**
@@ -379,6 +379,6 @@ public static LongStream longStreamAccumulatedKeys(Map<Long, ?> coll) {
379379 * @return A LongStream view of the collection which, by default, executes sequentially.
380380 */
381381 public static LongStream longStreamAccumulatedValues (Map <?, Long > coll ) {
382- return StreamConverters .asJavaSeqLongStream (scala .jdk .LongAccumulator$ .MODULE$ .fromSpecific ((IterableOnce <Object >)(Object )coll .valuesIterator ()));
382+ return StreamConverters .asJavaSeqLongStream (( IterableOnce < Long >)( Object ) scala .jdk .LongAccumulator$ .MODULE$ .fromSpecific ((IterableOnce <Object >)(Object )coll .valuesIterator ()));
383383 }
384384}
0 commit comments