Skip to content

Commit e55e185

Browse files
Forgot to undo
1 parent 66daf3d commit e55e185

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

language-adaptors/rxjava-scala/src/main/scala/rx/lang/scala/Observable.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1664,7 +1664,6 @@ trait Observable[+T]
16641664
* @return an Observable that emits `initialValue` followed by the results of invoking the selector
16651665
* on a `ConnectableObservable` that shares a single subscription to the underlying Observable
16661666
*/
1667-
import annotation.unchecked._
16681667
def publish[R](selector: Observable[T] => Observable[R], initialValue: T @uncheckedVariance): Observable[R] = {
16691668
val thisJava = this.asJavaObservable.asInstanceOf[rx.Observable[T]]
16701669
val fJava: Func1[rx.Observable[T], rx.Observable[R]] =
@@ -2884,7 +2883,7 @@ trait Observable[+T]
28842883
* @return an Observable that emits only the very first item from the source, or a default value
28852884
* if the source Observable completes without emitting any item.
28862885
*/
2887-
def headOrElse(default: => T@uncheckedVariance): Observable[T] = firstOrElse(default)
2886+
def headOrElse[U >: T](default: => U): Observable[U] = firstOrElse(default)
28882887

28892888
/**
28902889
* Returns an Observable that emits only the very first item emitted by the source Observable, or raises an

0 commit comments

Comments
 (0)