@@ -247,7 +247,7 @@ private Subscription protectivelyWrapAndSubscribe(Observer<T> o) {
247
247
return subscription .wrap (subscribe (new SafeObserver <T >(subscription , o )));
248
248
}
249
249
250
- public Subscription subscribe (final Action1 <T > onNext ) {
250
+ public Subscription subscribe (final Action1 <? super T > onNext ) {
251
251
if (onNext == null ) {
252
252
throw new IllegalArgumentException ("onNext can not be null" );
253
253
}
@@ -278,11 +278,11 @@ public void onNext(T args) {
278
278
});
279
279
}
280
280
281
- public Subscription subscribe (final Action1 <T > onNext , Scheduler scheduler ) {
281
+ public Subscription subscribe (final Action1 <? super T > onNext , Scheduler scheduler ) {
282
282
return subscribeOn (scheduler ).subscribe (onNext );
283
283
}
284
284
285
- public Subscription subscribe (final Action1 <T > onNext , final Action1 <Throwable > onError ) {
285
+ public Subscription subscribe (final Action1 <? super T > onNext , final Action1 <? super Throwable > onError ) {
286
286
if (onNext == null ) {
287
287
throw new IllegalArgumentException ("onNext can not be null" );
288
288
}
@@ -316,11 +316,11 @@ public void onNext(T args) {
316
316
});
317
317
}
318
318
319
- public Subscription subscribe (final Action1 <T > onNext , final Action1 <Throwable > onError , Scheduler scheduler ) {
319
+ public Subscription subscribe (final Action1 <? super T > onNext , final Action1 <? super Throwable > onError , Scheduler scheduler ) {
320
320
return subscribeOn (scheduler ).subscribe (onNext , onError );
321
321
}
322
322
323
- public Subscription subscribe (final Action1 <T > onNext , final Action1 <Throwable > onError , final Action0 onComplete ) {
323
+ public Subscription subscribe (final Action1 <? super T > onNext , final Action1 <? super Throwable > onError , final Action0 onComplete ) {
324
324
if (onNext == null ) {
325
325
throw new IllegalArgumentException ("onNext can not be null" );
326
326
}
@@ -357,7 +357,7 @@ public void onNext(T args) {
357
357
});
358
358
}
359
359
360
- public Subscription subscribe (final Action1 <T > onNext , final Action1 <Throwable > onError , final Action0 onComplete , Scheduler scheduler ) {
360
+ public Subscription subscribe (final Action1 <? super T > onNext , final Action1 <? super Throwable > onError , final Action0 onComplete , Scheduler scheduler ) {
361
361
return subscribeOn (scheduler ).subscribe (onNext , onError , onComplete );
362
362
}
363
363
0 commit comments