You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rxjava-core/src/main/java/rx/Observable.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5250,7 +5250,7 @@ public ConnectableObservable<T> publish(T initialValue) {
5250
5250
* selector on a connectable observable sequence that shares a single
5251
5251
* subscription to the underlying sequence.
5252
5252
*/
5253
-
public <R> Observable<R> publish(Func1<Observable<T>, Observable<R>> selector) {
5253
+
public <R> Observable<R> publish(Func1<? superObservable<T>, ? extendsObservable<R>> selector) {
5254
5254
returnmulticast(newFunc0<Subject<T, T>>() {
5255
5255
@Override
5256
5256
publicSubject<T, T> call() {
@@ -5270,7 +5270,7 @@ public Subject<T, T> call() {
5270
5270
* @param initialValue the initial value of the underlying BehaviorSubject
5271
5271
* @return an observable sequence that is the result of invoking the selector on a connectable observable sequence that shares a single subscription to the underlying sequence and starts with initialValue
5272
5272
*/
5273
-
public <R> Observable<R> publish(Func1<Observable<T>, Observable<R>> selector, finalTinitialValue) {
5273
+
public <R> Observable<R> publish(Func1<? superObservable<T>, ? extendsObservable<R>> selector, finalTinitialValue) {
5274
5274
returnmulticast(newFunc0<Subject<T, T>>() {
5275
5275
@Override
5276
5276
publicSubject<T, T> call() {
@@ -5307,7 +5307,7 @@ public ConnectableObservable<T> publishLast() {
5307
5307
* subscription to the underlying sequence containing only the last
5308
5308
* notification.
5309
5309
*/
5310
-
public <R> Observable<R> publishLast(Func1<Observable<T>, Observable<R>> selector) {
5310
+
public <R> Observable<R> publishLast(Func1<? superObservable<T>, ? extendsObservable<R>> selector) {
0 commit comments