Skip to content

Commit

Permalink
Deprecate Observable.apply
Browse files Browse the repository at this point in the history
  • Loading branch information
zsxwing committed Apr 21, 2014
1 parent b07bae9 commit f959dfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ class RxScalaDemo extends JUnitSuite {

@Test def elementAtExample(): Unit = {
val o = List("red", "green", "blue").toObservable
println(o(2).toBlockingObservable.single)
println(o.elementAt(2).toBlockingObservable.single)
}

@Test def elementAtOrDefaultExample(): Unit = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2350,6 +2350,7 @@ trait Observable[+T]
* @throws IndexOutOfBoundsException
* if index is less than 0
* @see `Observable.elementAt`
* @deprecated("Use `elementAt`", "0.18.0")
*/
def apply(index: Int): Observable[T] = elementAt(index)

Expand Down

0 comments on commit f959dfd

Please sign in to comment.