@@ -13,17 +13,17 @@ public static enum Kind {
1313 }
1414
1515 private final OnSubscribe <T > source ;
16- private final Operator <T , ?> from ;
16+ private final Operator <? extends T , ?> from ;
1717 private final Kind kind ;
1818 private final Notification <T > notification ;
19- private final Operator <?, T > to ;
19+ private final Operator <?, ? super T > to ;
2020 private final long nanoTime ;
2121 private final long threadId ;
2222 private Observer o ;
2323
2424 public static <T > DebugNotification <T > createSubscribe (Observer <? super T > o , OnSubscribe <T > source ) {
25- Operator <?, T > to = null ;
26- Operator <T , ?> from = null ;
25+ Operator <?, ? super T > to = null ;
26+ Operator <? extends T , ?> from = null ;
2727 if (o instanceof DebugSubscriber ) {
2828 to = ((DebugSubscriber <T >) o ).getTo ();
2929 from = ((DebugSubscriber <T >) o ).getFrom ();
@@ -32,23 +32,23 @@ public static <T> DebugNotification<T> createSubscribe(Observer<? super T> o, On
3232 return new DebugNotification <T >(o , from , Kind .Subscribe , null , to , source );
3333 }
3434
35- public static <T > DebugNotification <T > createOnNext (Observer <? super T > o , Operator <T , ?> from , T t , Operator <?, T > to ) {
35+ public static <T > DebugNotification <T > createOnNext (Observer <? super T > o , Operator <? extends T , ?> from , T t , Operator <?, ? super T > to ) {
3636 return new DebugNotification <T >(o , from , Kind .OnNext , Notification .createOnNext (t ), to , null );
3737 }
3838
39- public static <T > DebugNotification <T > createOnError (Observer <? super T > o , Operator <T , ?> from , Throwable e , Operator <?, T > to ) {
39+ public static <T > DebugNotification <T > createOnError (Observer <? super T > o , Operator <? extends T , ?> from , Throwable e , Operator <?, ? super T > to ) {
4040 return new DebugNotification <T >(o , from , Kind .OnError , Notification .<T > createOnError (e ), to , null );
4141 }
4242
43- public static <T > DebugNotification <T > createOnCompleted (Observer <? super T > o , Operator <T , ?> from , Operator <?, T > to ) {
43+ public static <T > DebugNotification <T > createOnCompleted (Observer <? super T > o , Operator <? extends T , ?> from , Operator <?, ? super T > to ) {
4444 return new DebugNotification <T >(o , from , Kind .OnCompleted , Notification .<T > createOnCompleted (), to , null );
4545 }
4646
47- public static <T > DebugNotification <T > createUnsubscribe (Observer <? super T > o , Operator <T , ?> from , Operator <?, T > to ) {
47+ public static <T > DebugNotification <T > createUnsubscribe (Observer <? super T > o , Operator <? extends T , ?> from , Operator <?, ? super T > to ) {
4848 return new DebugNotification <T >(o , from , Kind .Unsubscribe , null , to , null );
4949 }
5050
51- private DebugNotification (Observer o , Operator <T , ?> from , Kind kind , Notification <T > notification , Operator <?, T > to , OnSubscribe <T > source ) {
51+ private DebugNotification (Observer o , Operator <? extends T , ?> from , Kind kind , Notification <T > notification , Operator <?, ? super T > to , OnSubscribe <T > source ) {
5252 this .o = (o instanceof SafeSubscriber ) ? ((SafeSubscriber ) o ).getActual () : o ;
5353 this .from = from ;
5454 this .kind = kind ;
@@ -59,15 +59,15 @@ private DebugNotification(Observer o, Operator<T, ?> from, Kind kind, Notificati
5959 this .threadId = Thread .currentThread ().getId ();
6060 }
6161
62- public Operator <T , ?> getFrom () {
62+ public Operator <? extends T , ?> getFrom () {
6363 return from ;
6464 }
6565
6666 public Notification <T > getNotification () {
6767 return notification ;
6868 }
6969
70- public Operator <?, T > getTo () {
70+ public Operator <?, ? super T > getTo () {
7171 return to ;
7272 }
7373
0 commit comments