Skip to content

Commit d8f6153

Browse files
authored
2.x: Fix copy-paste errors in SingleSubject JavaDoc (#5834)
1 parent e76a476 commit d8f6153

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/io/reactivex/subjects/SingleSubject.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
* as parameters to {@link #onSuccess(Object)} and {@link #onError(Throwable)}. Such calls will result in a
3535
* {@link NullPointerException} being thrown and the subject's state is not changed.
3636
* <p>
37-
* Since a {@code SingleSubject} is a {@link io.reactivex.Maybe}, calling {@code onSuccess}, {@code onError}
38-
* or {@code onComplete} will move this {@code SingleSubject} into its terminal state atomically.
37+
* Since a {@code SingleSubject} is a {@link io.reactivex.Single}, calling {@code onSuccess} or {@code onError}
38+
* will move this {@code SingleSubject} into its terminal state atomically.
3939
* <p>
4040
* All methods are thread safe. Calling {@link #onSuccess(Object)} multiple
4141
* times has no effect. Calling {@link #onError(Throwable)} multiple times relays the {@code Throwable} to
@@ -55,8 +55,8 @@
5555
* <dl>
5656
* <dt><b>Scheduler:</b></dt>
5757
* <dd>{@code SingleSubject} does not operate by default on a particular {@link io.reactivex.Scheduler} and
58-
* the {@code SingleObserver}s get notified on the thread where the terminating {@code onSuccess}, {@code onError}
59-
* or {@code onComplete} methods were invoked.</dd>
58+
* the {@code SingleObserver}s get notified on the thread where the terminating {@code onSuccess} or {@code onError}
59+
* methods were invoked.</dd>
6060
* <dt><b>Error handling:</b></dt>
6161
* <dd>When the {@link #onError(Throwable)} is called, the {@code SingleSubject} enters into a terminal state
6262
* and emits the same {@code Throwable} instance to the last set of {@code SingleObserver}s. During this emission,

0 commit comments

Comments
 (0)