@@ -1886,12 +1886,13 @@ public static <T> Flowable<T> fromFuture(Future<? extends T> future, long timeou
1886
1886
* @return a Flowable that emits the item from the source {@link Future}
1887
1887
* @see <a href="http://reactivex.io/documentation/operators/from.html">ReactiveX operators documentation: From</a>
1888
1888
*/
1889
+ @SuppressWarnings({ "unchecked", "cast" })
1889
1890
@CheckReturnValue
1890
1891
@BackpressureSupport(BackpressureKind.FULL)
1891
1892
@SchedulerSupport(SchedulerSupport.CUSTOM)
1892
1893
public static <T> Flowable<T> fromFuture(Future<? extends T> future, long timeout, TimeUnit unit, Scheduler scheduler) {
1893
1894
ObjectHelper.requireNonNull(scheduler, "scheduler is null");
1894
- return fromFuture(future, timeout, unit).subscribeOn(scheduler);
1895
+ return fromFuture((Future<T>) future, timeout, unit).subscribeOn(scheduler);
1895
1896
}
1896
1897
1897
1898
/**
@@ -1923,12 +1924,13 @@ public static <T> Flowable<T> fromFuture(Future<? extends T> future, long timeou
1923
1924
* @return a Flowable that emits the item from the source {@link Future}
1924
1925
* @see <a href="http://reactivex.io/documentation/operators/from.html">ReactiveX operators documentation: From</a>
1925
1926
*/
1927
+ @SuppressWarnings({ "cast", "unchecked" })
1926
1928
@CheckReturnValue
1927
1929
@BackpressureSupport(BackpressureKind.FULL)
1928
1930
@SchedulerSupport(SchedulerSupport.CUSTOM)
1929
1931
public static <T> Flowable<T> fromFuture(Future<? extends T> future, Scheduler scheduler) {
1930
1932
ObjectHelper.requireNonNull(scheduler, "scheduler is null");
1931
- return fromFuture(future).subscribeOn(scheduler);
1933
+ return fromFuture((Future<T>) future).subscribeOn(scheduler);
1932
1934
}
1933
1935
1934
1936
/**
@@ -4145,13 +4147,14 @@ public static <T, R> Flowable<R> zip(Iterable<? extends Publisher<? extends T>>
4145
4147
* @return a Flowable that emits the zipped results
4146
4148
* @see <a href="http://reactivex.io/documentation/operators/zip.html">ReactiveX operators documentation: Zip</a>
4147
4149
*/
4150
+ @SuppressWarnings({ "rawtypes", "unchecked", "cast" })
4148
4151
@CheckReturnValue
4149
4152
@BackpressureSupport(BackpressureKind.FULL)
4150
4153
@SchedulerSupport(SchedulerSupport.NONE)
4151
4154
public static <T, R> Flowable<R> zip(Publisher<? extends Publisher<? extends T>> sources,
4152
4155
final Function<? super Object[], ? extends R> zipper) {
4153
4156
ObjectHelper.requireNonNull(zipper, "zipper is null");
4154
- return fromPublisher(sources).toList().flatMapPublisher(FlowableInternalHelper.<T, R>zipIterable(zipper));
4157
+ return fromPublisher(sources).toList().flatMapPublisher((Function) FlowableInternalHelper.<T, R>zipIterable(zipper));
4155
4158
}
4156
4159
4157
4160
/**
0 commit comments