Skip to content

Commit 913e800

Browse files
lorenzpahlakarnokd
authored andcommitted
Fix: use correct return type in Javadoc documentation (#6344)
1 parent 1e4e966 commit 913e800

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/java/io/reactivex/Flowable.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -9289,7 +9289,7 @@ public final Maybe<T> elementAt(long index) {
92899289
}
92909290

92919291
/**
9292-
* Returns a Flowable that emits the item found at a specified index in a sequence of emissions from
9292+
* Returns a Single that emits the item found at a specified index in a sequence of emissions from
92939293
* this Flowable, or a default item if that index is out of range.
92949294
* <p>
92959295
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/elementAtOrDefault.png" alt="">
@@ -9305,7 +9305,7 @@ public final Maybe<T> elementAt(long index) {
93059305
* the zero-based index of the item to retrieve
93069306
* @param defaultItem
93079307
* the default item
9308-
* @return a Flowable that emits the item at the specified position in the sequence emitted by the source
9308+
* @return a Single that emits the item at the specified position in the sequence emitted by the source
93099309
* Publisher, or the default item if that index is outside the bounds of the source sequence
93109310
* @throws IndexOutOfBoundsException
93119311
* if {@code index} is less than 0
@@ -9323,7 +9323,7 @@ public final Single<T> elementAt(long index, T defaultItem) {
93239323
}
93249324

93259325
/**
9326-
* Returns a Flowable that emits the item found at a specified index in a sequence of emissions from
9326+
* Returns a Single that emits the item found at a specified index in a sequence of emissions from
93279327
* this Flowable or signals a {@link NoSuchElementException} if this Flowable has fewer elements than index.
93289328
* <p>
93299329
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/elementAtOrDefault.png" alt="">
@@ -9337,7 +9337,7 @@ public final Single<T> elementAt(long index, T defaultItem) {
93379337
*
93389338
* @param index
93399339
* the zero-based index of the item to retrieve
9340-
* @return a Flowable that emits the item at the specified position in the sequence emitted by the source
9340+
* @return a Single that emits the item at the specified position in the sequence emitted by the source
93419341
* Publisher, or the default item if that index is outside the bounds of the source sequence
93429342
* @throws IndexOutOfBoundsException
93439343
* if {@code index} is less than 0

src/main/java/io/reactivex/Observable.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -9507,7 +9507,7 @@ public final Maybe<T> lastElement() {
95079507
*
95089508
* @param defaultItem
95099509
* the default item to emit if the source ObservableSource is empty
9510-
* @return an Observable that emits only the last item emitted by the source ObservableSource, or a default item
9510+
* @return a Single that emits only the last item emitted by the source ObservableSource, or a default item
95119511
* if the source ObservableSource is empty
95129512
* @see <a href="http://reactivex.io/documentation/operators/last.html">ReactiveX operators documentation: Last</a>
95139513
*/

0 commit comments

Comments
 (0)