Skip to content

Commit 171ebc0

Browse files
Fix Scala Build
1 parent 99f32ab commit 171ebc0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ package rx.lang.scala
2121
trait Subject[T] extends Observable[T] with Observer[T] {
2222
private [scala] val asJavaSubject: rx.subjects.Subject[_ >: T, _<: T]
2323

24-
val asJavaObservable: rx.Observable[_ <: T] = asJavaSubject.toObservable()
24+
val asJavaObservable: rx.Observable[_ <: T] = asJavaSubject
2525

2626
override val asJavaObserver: rx.Observer[_ >: T] = asJavaSubject
2727
override def onNext(value: T): Unit = { asJavaObserver.onNext(value)}

rxjava-core/src/main/java/rx/Observable.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6840,6 +6840,10 @@ public final Subscription subscribe(final Action1<? super T> onNext, Scheduler s
68406840
return subscribeOn(scheduler).subscribe(onNext);
68416841
}
68426842

6843+
public final Subscription subscribe(final Observer<? super T> observer, Scheduler scheduler) {
6844+
return subscribeOn(scheduler).subscribe(observer);
6845+
}
6846+
68436847
public final Subscription subscribe(final Observer<? super T> observer) {
68446848
return subscribe(new Subscriber<T>() {
68456849

0 commit comments

Comments
 (0)