Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javadoc: Incorrect Return Types in Javadoc Comments #6344

Merged
merged 1 commit into from
Dec 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/main/java/io/reactivex/Flowable.java
Original file line number Diff line number Diff line change
Expand Up @@ -9289,7 +9289,7 @@ public final Maybe<T> elementAt(long index) {
}

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

/**
* Returns a Flowable that emits the item found at a specified index in a sequence of emissions from
* Returns a Single that emits the item found at a specified index in a sequence of emissions from
* this Flowable or signals a {@link NoSuchElementException} if this Flowable has fewer elements than index.
* <p>
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/elementAtOrDefault.png" alt="">
Expand All @@ -9337,7 +9337,7 @@ public final Single<T> elementAt(long index, T defaultItem) {
*
* @param index
* the zero-based index of the item to retrieve
* @return a Flowable that emits the item at the specified position in the sequence emitted by the source
* @return a Single that emits the item at the specified position in the sequence emitted by the source
* Publisher, or the default item if that index is outside the bounds of the source sequence
* @throws IndexOutOfBoundsException
* if {@code index} is less than 0
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/reactivex/Observable.java
Original file line number Diff line number Diff line change
Expand Up @@ -9507,7 +9507,7 @@ public final Maybe<T> lastElement() {
*
* @param defaultItem
* the default item to emit if the source ObservableSource is empty
* @return an Observable that emits only the last item emitted by the source ObservableSource, or a default item
* @return a Single that emits only the last item emitted by the source ObservableSource, or a default item
* if the source ObservableSource is empty
* @see <a href="http://reactivex.io/documentation/operators/last.html">ReactiveX operators documentation: Last</a>
*/
Expand Down