@@ -630,7 +630,7 @@ public static Completable fromFuture(@NonNull Future<?> future) {
630
630
@ CheckReturnValue
631
631
@ NonNull
632
632
@ SchedulerSupport (SchedulerSupport .NONE )
633
- public static <T > Completable fromMaybe (@ NonNull MaybeSource <T > maybe ) {
633
+ public static <@ NonNull T > Completable fromMaybe (@ NonNull MaybeSource <T > maybe ) {
634
634
Objects .requireNonNull (maybe , "maybe is null" );
635
635
return RxJavaPlugins .onAssembly (new MaybeIgnoreElementCompletable <>(maybe ));
636
636
}
@@ -686,7 +686,7 @@ public static Completable fromRunnable(@NonNull Runnable run) {
686
686
@ CheckReturnValue
687
687
@ NonNull
688
688
@ SchedulerSupport (SchedulerSupport .NONE )
689
- public static <T > Completable fromObservable (@ NonNull ObservableSource <T > observable ) {
689
+ public static <@ NonNull T > Completable fromObservable (@ NonNull ObservableSource <T > observable ) {
690
690
Objects .requireNonNull (observable , "observable is null" );
691
691
return RxJavaPlugins .onAssembly (new CompletableFromObservable <>(observable ));
692
692
}
@@ -724,7 +724,7 @@ public static <T> Completable fromObservable(@NonNull ObservableSource<T> observ
724
724
@ NonNull
725
725
@ BackpressureSupport (BackpressureKind .UNBOUNDED_IN )
726
726
@ SchedulerSupport (SchedulerSupport .NONE )
727
- public static <T > Completable fromPublisher (@ NonNull Publisher <T > publisher ) {
727
+ public static <@ NonNull T > Completable fromPublisher (@ NonNull Publisher <T > publisher ) {
728
728
Objects .requireNonNull (publisher , "publisher is null" );
729
729
return RxJavaPlugins .onAssembly (new CompletableFromPublisher <>(publisher ));
730
730
}
@@ -746,7 +746,7 @@ public static <T> Completable fromPublisher(@NonNull Publisher<T> publisher) {
746
746
@ CheckReturnValue
747
747
@ NonNull
748
748
@ SchedulerSupport (SchedulerSupport .NONE )
749
- public static <T > Completable fromSingle (@ NonNull SingleSource <T > single ) {
749
+ public static <@ NonNull T > Completable fromSingle (@ NonNull SingleSource <T > single ) {
750
750
Objects .requireNonNull (single , "single is null" );
751
751
return RxJavaPlugins .onAssembly (new CompletableFromSingle <>(single ));
752
752
}
@@ -1225,7 +1225,7 @@ public static Completable switchOnNextDelayError(@NonNull Publisher<@NonNull ? e
1225
1225
@ CheckReturnValue
1226
1226
@ SchedulerSupport (SchedulerSupport .NONE )
1227
1227
@ NonNull
1228
- public static <R > Completable using (@ NonNull Supplier <R > resourceSupplier ,
1228
+ public static <@ NonNull R > Completable using (@ NonNull Supplier <R > resourceSupplier ,
1229
1229
@ NonNull Function <? super R , ? extends CompletableSource > sourceSupplier ,
1230
1230
@ NonNull Consumer <? super R > resourceCleanup ) {
1231
1231
return using (resourceSupplier , sourceSupplier , resourceCleanup , true );
@@ -1261,7 +1261,7 @@ public static <R> Completable using(@NonNull Supplier<R> resourceSupplier,
1261
1261
@ CheckReturnValue
1262
1262
@ NonNull
1263
1263
@ SchedulerSupport (SchedulerSupport .NONE )
1264
- public static <R > Completable using (
1264
+ public static <@ NonNull R > Completable using (
1265
1265
@ NonNull Supplier <R > resourceSupplier ,
1266
1266
@ NonNull Function <? super R , ? extends CompletableSource > sourceSupplier ,
1267
1267
@ NonNull Consumer <? super R > resourceCleanup ,
@@ -2194,7 +2194,7 @@ public final Completable lift(@NonNull CompletableOperator onLift) {
2194
2194
@ CheckReturnValue
2195
2195
@ SchedulerSupport (SchedulerSupport .NONE )
2196
2196
@ NonNull
2197
- public final <T > Single <Notification <T >> materialize () {
2197
+ public final <@ NonNull T > Single <Notification <T >> materialize () {
2198
2198
return RxJavaPlugins .onAssembly (new CompletableMaterialize <>(this ));
2199
2199
}
2200
2200
@@ -2356,7 +2356,7 @@ public final Completable onErrorResumeWith(@NonNull CompletableSource fallback)
2356
2356
@ CheckReturnValue
2357
2357
@ NonNull
2358
2358
@ SchedulerSupport (SchedulerSupport .NONE )
2359
- public final <T > Maybe <T > onErrorReturn (@ NonNull Function <? super Throwable , ? extends T > itemSupplier ) {
2359
+ public final <@ NonNull T > Maybe <T > onErrorReturn (@ NonNull Function <? super Throwable , ? extends T > itemSupplier ) {
2360
2360
Objects .requireNonNull (itemSupplier , "itemSupplier is null" );
2361
2361
return RxJavaPlugins .onAssembly (new CompletableOnErrorReturn <>(this , itemSupplier ));
2362
2362
}
@@ -2384,7 +2384,7 @@ public final <T> Maybe<T> onErrorReturn(@NonNull Function<? super Throwable, ? e
2384
2384
@ CheckReturnValue
2385
2385
@ NonNull
2386
2386
@ SchedulerSupport (SchedulerSupport .NONE )
2387
- public final <T > Maybe <T > onErrorReturnItem (@ NonNull T item ) {
2387
+ public final <@ NonNull T > Maybe <T > onErrorReturnItem (@ NonNull T item ) {
2388
2388
Objects .requireNonNull (item , "item is null" );
2389
2389
return onErrorReturn (Functions .justFunction (item ));
2390
2390
}
@@ -2483,7 +2483,7 @@ public final Completable repeatUntil(@NonNull BooleanSupplier stop) {
2483
2483
@ CheckReturnValue
2484
2484
@ SchedulerSupport (SchedulerSupport .NONE )
2485
2485
@ NonNull
2486
- public final Completable repeatWhen (@ NonNull Function <? super Flowable <Object >, ? extends Publisher <@ NonNull ?>> handler ) {
2486
+ public final Completable repeatWhen (@ NonNull Function <? super Flowable <Object >, @ NonNull ? extends Publisher <@ NonNull ?>> handler ) {
2487
2487
return fromPublisher (toFlowable ().repeatWhen (handler ));
2488
2488
}
2489
2489
@@ -2655,7 +2655,7 @@ public final Completable retryUntil(@NonNull BooleanSupplier stop) {
2655
2655
@ CheckReturnValue
2656
2656
@ SchedulerSupport (SchedulerSupport .NONE )
2657
2657
@ NonNull
2658
- public final Completable retryWhen (@ NonNull Function <? super Flowable <Throwable >, ? extends Publisher <@ NonNull ?>> handler ) {
2658
+ public final Completable retryWhen (@ NonNull Function <? super Flowable <Throwable >, @ NonNull ? extends Publisher <@ NonNull ?>> handler ) {
2659
2659
return fromPublisher (toFlowable ().retryWhen (handler ));
2660
2660
}
2661
2661
@@ -2726,7 +2726,7 @@ public final Completable startWith(@NonNull CompletableSource other) {
2726
2726
@ NonNull
2727
2727
@ SchedulerSupport (SchedulerSupport .NONE )
2728
2728
@ BackpressureSupport (BackpressureKind .FULL )
2729
- public final <T > Flowable <T > startWith (@ NonNull SingleSource <T > other ) {
2729
+ public final <@ NonNull T > Flowable <T > startWith (@ NonNull SingleSource <T > other ) {
2730
2730
Objects .requireNonNull (other , "other is null" );
2731
2731
return Flowable .concat (Single .wrap (other ).toFlowable (), toFlowable ());
2732
2732
}
@@ -2752,7 +2752,7 @@ public final <T> Flowable<T> startWith(@NonNull SingleSource<T> other) {
2752
2752
@ NonNull
2753
2753
@ SchedulerSupport (SchedulerSupport .NONE )
2754
2754
@ BackpressureSupport (BackpressureKind .FULL )
2755
- public final <T > Flowable <T > startWith (@ NonNull MaybeSource <T > other ) {
2755
+ public final <@ NonNull T > Flowable <T > startWith (@ NonNull MaybeSource <T > other ) {
2756
2756
Objects .requireNonNull (other , "other is null" );
2757
2757
return Flowable .concat (Maybe .wrap (other ).toFlowable (), toFlowable ());
2758
2758
}
@@ -2774,7 +2774,7 @@ public final <T> Flowable<T> startWith(@NonNull MaybeSource<T> other) {
2774
2774
@ CheckReturnValue
2775
2775
@ NonNull
2776
2776
@ SchedulerSupport (SchedulerSupport .NONE )
2777
- public final <T > Observable <T > startWith (@ NonNull ObservableSource <T > other ) {
2777
+ public final <@ NonNull T > Observable <T > startWith (@ NonNull ObservableSource <T > other ) {
2778
2778
Objects .requireNonNull (other , "other is null" );
2779
2779
return Observable .wrap (other ).concatWith (this .toObservable ());
2780
2780
}
@@ -2800,7 +2800,7 @@ public final <T> Observable<T> startWith(@NonNull ObservableSource<T> other) {
2800
2800
@ NonNull
2801
2801
@ BackpressureSupport (BackpressureKind .FULL )
2802
2802
@ SchedulerSupport (SchedulerSupport .NONE )
2803
- public final <T > Flowable <T > startWith (@ NonNull Publisher <T > other ) {
2803
+ public final <@ NonNull T > Flowable <T > startWith (@ NonNull Publisher <T > other ) {
2804
2804
Objects .requireNonNull (other , "other is null" );
2805
2805
return this .<T >toFlowable ().startWith (other );
2806
2806
}
@@ -3214,7 +3214,7 @@ public final <R> R to(@NonNull CompletableConverter<? extends R> converter) {
3214
3214
@ BackpressureSupport (BackpressureKind .FULL )
3215
3215
@ SchedulerSupport (SchedulerSupport .NONE )
3216
3216
@ NonNull
3217
- public final <T > Flowable <T > toFlowable () {
3217
+ public final <@ NonNull T > Flowable <T > toFlowable () {
3218
3218
if (this instanceof FuseToFlowable ) {
3219
3219
return ((FuseToFlowable <T >)this ).fuseToFlowable ();
3220
3220
}
@@ -3259,7 +3259,7 @@ public final Future<Void> toFuture() {
3259
3259
@ SuppressWarnings ("unchecked" )
3260
3260
@ SchedulerSupport (SchedulerSupport .NONE )
3261
3261
@ NonNull
3262
- public final <T > Maybe <T > toMaybe () {
3262
+ public final <@ NonNull T > Maybe <T > toMaybe () {
3263
3263
if (this instanceof FuseToMaybe ) {
3264
3264
return ((FuseToMaybe <T >)this ).fuseToMaybe ();
3265
3265
}
@@ -3282,7 +3282,7 @@ public final <T> Maybe<T> toMaybe() {
3282
3282
@ SuppressWarnings ("unchecked" )
3283
3283
@ SchedulerSupport (SchedulerSupport .NONE )
3284
3284
@ NonNull
3285
- public final <T > Observable <T > toObservable () {
3285
+ public final <@ NonNull T > Observable <T > toObservable () {
3286
3286
if (this instanceof FuseToObservable ) {
3287
3287
return ((FuseToObservable <T >)this ).fuseToObservable ();
3288
3288
}
@@ -3469,7 +3469,7 @@ public static Completable fromCompletionStage(@NonNull CompletionStage<?> stage)
3469
3469
@ CheckReturnValue
3470
3470
@ SchedulerSupport (SchedulerSupport .NONE )
3471
3471
@ NonNull
3472
- public final <T > CompletionStage <T > toCompletionStage (@ Nullable T defaultItem ) {
3472
+ public final <@ Nullable T > CompletionStage <T > toCompletionStage (T defaultItem ) {
3473
3473
return subscribeWith (new CompletionStageConsumer <>(true , defaultItem ));
3474
3474
}
3475
3475
}
0 commit comments