@@ -600,7 +600,7 @@ public static <T> Observable<T> amb(Observable<? extends T> o1, Observable<? ext
600
600
* Observables by means of the given aggregation function
601
601
* @see <a href="http://reactivex.io/documentation/operators/combinelatest.html">ReactiveX operators documentation: CombineLatest</a>
602
602
*/
603
- @SuppressWarnings("unchecked")
603
+ @SuppressWarnings({ "unchecked", "cast" } )
604
604
public static <T1, T2, R> Observable<R> combineLatest(Observable<? extends T1> o1, Observable<? extends T2> o2, Func2<? super T1, ? super T2, ? extends R> combineFunction) {
605
605
return (Observable<R>)combineLatest(Arrays.asList(o1, o2), Functions.fromFunc(combineFunction));
606
606
}
@@ -628,7 +628,7 @@ public static <T1, T2, R> Observable<R> combineLatest(Observable<? extends T1> o
628
628
* Observables by means of the given aggregation function
629
629
* @see <a href="http://reactivex.io/documentation/operators/combinelatest.html">ReactiveX operators documentation: CombineLatest</a>
630
630
*/
631
- @SuppressWarnings("unchecked")
631
+ @SuppressWarnings({ "unchecked", "cast" } )
632
632
public static <T1, T2, T3, R> Observable<R> combineLatest(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Func3<? super T1, ? super T2, ? super T3, ? extends R> combineFunction) {
633
633
return (Observable<R>)combineLatest(Arrays.asList(o1, o2, o3), Functions.fromFunc(combineFunction));
634
634
}
@@ -658,7 +658,7 @@ public static <T1, T2, T3, R> Observable<R> combineLatest(Observable<? extends T
658
658
* Observables by means of the given aggregation function
659
659
* @see <a href="http://reactivex.io/documentation/operators/combinelatest.html">ReactiveX operators documentation: CombineLatest</a>
660
660
*/
661
- @SuppressWarnings("unchecked")
661
+ @SuppressWarnings({ "unchecked", "cast" } )
662
662
public static <T1, T2, T3, T4, R> Observable<R> combineLatest(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Observable<? extends T4> o4,
663
663
Func4<? super T1, ? super T2, ? super T3, ? super T4, ? extends R> combineFunction) {
664
664
return (Observable<R>)combineLatest(Arrays.asList(o1, o2, o3, o4), Functions.fromFunc(combineFunction));
@@ -691,7 +691,7 @@ public static <T1, T2, T3, T4, R> Observable<R> combineLatest(Observable<? exten
691
691
* Observables by means of the given aggregation function
692
692
* @see <a href="http://reactivex.io/documentation/operators/combinelatest.html">ReactiveX operators documentation: CombineLatest</a>
693
693
*/
694
- @SuppressWarnings("unchecked")
694
+ @SuppressWarnings({ "unchecked", "cast" } )
695
695
public static <T1, T2, T3, T4, T5, R> Observable<R> combineLatest(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Observable<? extends T4> o4, Observable<? extends T5> o5,
696
696
Func5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? extends R> combineFunction) {
697
697
return (Observable<R>)combineLatest(Arrays.asList(o1, o2, o3, o4, o5), Functions.fromFunc(combineFunction));
@@ -726,7 +726,7 @@ public static <T1, T2, T3, T4, T5, R> Observable<R> combineLatest(Observable<? e
726
726
* Observables by means of the given aggregation function
727
727
* @see <a href="http://reactivex.io/documentation/operators/combinelatest.html">ReactiveX operators documentation: CombineLatest</a>
728
728
*/
729
- @SuppressWarnings("unchecked")
729
+ @SuppressWarnings({ "unchecked", "cast" } )
730
730
public static <T1, T2, T3, T4, T5, T6, R> Observable<R> combineLatest(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Observable<? extends T4> o4, Observable<? extends T5> o5, Observable<? extends T6> o6,
731
731
Func6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? extends R> combineFunction) {
732
732
return (Observable<R>)combineLatest(Arrays.asList(o1, o2, o3, o4, o5, o6), Functions.fromFunc(combineFunction));
@@ -763,7 +763,7 @@ public static <T1, T2, T3, T4, T5, T6, R> Observable<R> combineLatest(Observable
763
763
* Observables by means of the given aggregation function
764
764
* @see <a href="http://reactivex.io/documentation/operators/combinelatest.html">ReactiveX operators documentation: CombineLatest</a>
765
765
*/
766
- @SuppressWarnings("unchecked")
766
+ @SuppressWarnings({ "unchecked", "cast" } )
767
767
public static <T1, T2, T3, T4, T5, T6, T7, R> Observable<R> combineLatest(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Observable<? extends T4> o4, Observable<? extends T5> o5, Observable<? extends T6> o6, Observable<? extends T7> o7,
768
768
Func7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? extends R> combineFunction) {
769
769
return (Observable<R>)combineLatest(Arrays.asList(o1, o2, o3, o4, o5, o6, o7), Functions.fromFunc(combineFunction));
@@ -802,7 +802,7 @@ public static <T1, T2, T3, T4, T5, T6, T7, R> Observable<R> combineLatest(Observ
802
802
* Observables by means of the given aggregation function
803
803
* @see <a href="http://reactivex.io/documentation/operators/combinelatest.html">ReactiveX operators documentation: CombineLatest</a>
804
804
*/
805
- @SuppressWarnings("unchecked")
805
+ @SuppressWarnings({ "unchecked", "cast" } )
806
806
public static <T1, T2, T3, T4, T5, T6, T7, T8, R> Observable<R> combineLatest(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Observable<? extends T4> o4, Observable<? extends T5> o5, Observable<? extends T6> o6, Observable<? extends T7> o7, Observable<? extends T8> o8,
807
807
Func8<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ? extends R> combineFunction) {
808
808
return (Observable<R>)combineLatest(Arrays.asList(o1, o2, o3, o4, o5, o6, o7, o8), Functions.fromFunc(combineFunction));
@@ -843,7 +843,7 @@ public static <T1, T2, T3, T4, T5, T6, T7, T8, R> Observable<R> combineLatest(Ob
843
843
* Observables by means of the given aggregation function
844
844
* @see <a href="http://reactivex.io/documentation/operators/combinelatest.html">ReactiveX operators documentation: CombineLatest</a>
845
845
*/
846
- @SuppressWarnings("unchecked")
846
+ @SuppressWarnings({ "unchecked", "cast" } )
847
847
public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, R> Observable<R> combineLatest(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Observable<? extends T4> o4, Observable<? extends T5> o5, Observable<? extends T6> o6, Observable<? extends T7> o7, Observable<? extends T8> o8,
848
848
Observable<? extends T9> o9,
849
849
Func9<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ? super T9, ? extends R> combineFunction) {
@@ -1311,6 +1311,7 @@ public static <T> Observable<T> error(Throwable exception) {
1311
1311
* @return an Observable that emits the item from the source {@link Future}
1312
1312
* @see <a href="http://reactivex.io/documentation/operators/from.html">ReactiveX operators documentation: From</a>
1313
1313
*/
1314
+ @SuppressWarnings("cast")
1314
1315
public static <T> Observable<T> from(Future<? extends T> future) {
1315
1316
return (Observable<T>)create(OnSubscribeToObservableFuture.toObservableFuture(future));
1316
1317
}
@@ -1342,6 +1343,7 @@ public static <T> Observable<T> from(Future<? extends T> future) {
1342
1343
* @return an Observable that emits the item from the source {@link Future}
1343
1344
* @see <a href="http://reactivex.io/documentation/operators/from.html">ReactiveX operators documentation: From</a>
1344
1345
*/
1346
+ @SuppressWarnings("cast")
1345
1347
public static <T> Observable<T> from(Future<? extends T> future, long timeout, TimeUnit unit) {
1346
1348
return (Observable<T>)create(OnSubscribeToObservableFuture.toObservableFuture(future, timeout, unit));
1347
1349
}
@@ -1372,6 +1374,7 @@ public static <T> Observable<T> from(Future<? extends T> future, long timeout, T
1372
1374
*/
1373
1375
public static <T> Observable<T> from(Future<? extends T> future, Scheduler scheduler) {
1374
1376
// TODO in a future revision the Scheduler will become important because we'll start polling instead of blocking on the Future
1377
+ @SuppressWarnings("cast")
1375
1378
Observable<T> o = (Observable<T>)create(OnSubscribeToObservableFuture.toObservableFuture(future));
1376
1379
return o.subscribeOn(scheduler);
1377
1380
}
@@ -5742,6 +5745,7 @@ public final <R> Observable<R> flatMapIterable(Func1<? super T, ? extends Iterab
5742
5745
* Observable
5743
5746
* @see <a href="http://reactivex.io/documentation/operators/flatmap.html">ReactiveX operators documentation: FlatMap</a>
5744
5747
*/
5748
+ @SuppressWarnings("cast")
5745
5749
public final <U, R> Observable<R> flatMapIterable(Func1<? super T, ? extends Iterable<? extends U>> collectionSelector,
5746
5750
Func2<? super T, ? super U, ? extends R> resultSelector) {
5747
5751
return (Observable<R>)flatMap(OperatorMapPair.convertSelector(collectionSelector), resultSelector);
@@ -5777,6 +5781,7 @@ public final <U, R> Observable<R> flatMapIterable(Func1<? super T, ? extends Ite
5777
5781
* @see <a href="http://reactivex.io/documentation/operators/flatmap.html">ReactiveX operators documentation: FlatMap</a>
5778
5782
* @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
5779
5783
*/
5784
+ @SuppressWarnings("cast")
5780
5785
@Beta
5781
5786
public final <U, R> Observable<R> flatMapIterable(Func1<? super T, ? extends Iterable<? extends U>> collectionSelector,
5782
5787
Func2<? super T, ? super U, ? extends R> resultSelector, int maxConcurrent) {
@@ -6554,6 +6559,7 @@ public final Observable<T> onErrorResumeNext(final Func1<Throwable, ? extends Ob
6554
6559
* @return the original Observable, with appropriately modified behavior
6555
6560
* @see <a href="http://reactivex.io/documentation/operators/catch.html">ReactiveX operators documentation: Catch</a>
6556
6561
*/
6562
+ @SuppressWarnings("cast")
6557
6563
public final Observable<T> onErrorResumeNext(final Observable<? extends T> resumeSequence) {
6558
6564
return lift((Operator<T, T>)OperatorOnErrorResumeNextViaFunction.withOther(resumeSequence));
6559
6565
}
@@ -6584,6 +6590,7 @@ public final Observable<T> onErrorResumeNext(final Observable<? extends T> resum
6584
6590
* @return the original Observable with appropriately modified behavior
6585
6591
* @see <a href="http://reactivex.io/documentation/operators/catch.html">ReactiveX operators documentation: Catch</a>
6586
6592
*/
6593
+ @SuppressWarnings("cast")
6587
6594
public final Observable<T> onErrorReturn(Func1<Throwable, ? extends T> resumeFunction) {
6588
6595
return lift((Operator<T, T>)OperatorOnErrorResumeNextViaFunction.withSingle(resumeFunction));
6589
6596
}
@@ -6620,6 +6627,7 @@ public final Observable<T> onErrorReturn(Func1<Throwable, ? extends T> resumeFun
6620
6627
* @return the original Observable, with appropriately modified behavior
6621
6628
* @see <a href="http://reactivex.io/documentation/operators/catch.html">ReactiveX operators documentation: Catch</a>
6622
6629
*/
6630
+ @SuppressWarnings("cast")
6623
6631
public final Observable<T> onExceptionResumeNext(final Observable<? extends T> resumeSequence) {
6624
6632
return lift((Operator<T, T>)OperatorOnErrorResumeNextViaFunction.withException(resumeSequence));
6625
6633
}
@@ -10327,6 +10335,7 @@ public final <T2, R> Observable<R> zipWith(Iterable<? extends T2> other, Func2<?
10327
10335
* and emits the results of {@code zipFunction} applied to these pairs
10328
10336
* @see <a href="http://reactivex.io/documentation/operators/zip.html">ReactiveX operators documentation: Zip</a>
10329
10337
*/
10338
+ @SuppressWarnings("cast")
10330
10339
public final <T2, R> Observable<R> zipWith(Observable<? extends T2> other, Func2<? super T, ? super T2, ? extends R> zipFunction) {
10331
10340
return (Observable<R>)zip(this, other, zipFunction);
10332
10341
}
0 commit comments