@@ -73,12 +73,12 @@ public class Single<T> {
73
73
/**
74
74
* Creates a Single with a Function to execute when it is subscribed to (executed).
75
75
* <p>
76
- * <em>Note:</em> Use {@link #create(OnExecute )} to create a Single, instead of this constructor,
76
+ * <em>Note:</em> Use {@link #create(OnSubscribe )} to create a Single, instead of this constructor,
77
77
* unless you specifically have a need for inheritance.
78
78
*
79
79
* @param f
80
- * {@link OnExecute} to be executed when {@link # execute(SingleSubscriber)} or
81
- * {@link # subscribe(Subscriber)} is called
80
+ * {@code OnExecute} to be executed when {@code execute(SingleSubscriber)} or
81
+ * {@code subscribe(Subscriber)} is called
82
82
*/
83
83
protected Single (final OnSubscribe <T > f ) {
84
84
// bridge between OnSubscribe (which all Operators and Observables use) and OnExecute (for Single)
@@ -1294,11 +1294,11 @@ public final Single<T> observeOn(Scheduler scheduler) {
1294
1294
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.onErrorReturn.png" alt="">
1295
1295
* <p>
1296
1296
* By default, when a Single encounters an error that prevents it from emitting the expected item to its
1297
- * subscriber, the Single invokes its subscriber's {@link SingleSubscriber #onError} method, and then quits
1297
+ * subscriber, the Single invokes its subscriber's {@link Subscriber #onError} method, and then quits
1298
1298
* without invoking any more of its subscriber's methods. The {@code onErrorReturn} method changes this
1299
1299
* behavior. If you pass a function ({@code resumeFunction}) to a Single's {@code onErrorReturn} method, if
1300
1300
* the original Single encounters an error, instead of invoking its subscriber's
1301
- * {@link SingleSubsriber #onError} method, it will instead emit the return value of {@code resumeFunction}.
1301
+ * {@link Subscriber #onError} method, it will instead emit the return value of {@code resumeFunction}.
1302
1302
* <p>
1303
1303
* You can use this to prevent errors from propagating or to supply fallback data should errors be
1304
1304
* encountered.
@@ -1357,7 +1357,7 @@ public final void onNext(T args) {
1357
1357
* <dd>{@code subscribe} does not operate by default on a particular {@link Scheduler}.</dd>
1358
1358
* </dl>
1359
1359
*
1360
- * @param onNext
1360
+ * @param onSuccess
1361
1361
* the {@code Action1<T>} you have designed to accept the emission from the Single
1362
1362
* @return a {@link Subscription} reference can request the {@link Single} stop work.
1363
1363
* @throws IllegalArgumentException
@@ -1399,7 +1399,7 @@ public final void onNext(T args) {
1399
1399
* <dd>{@code subscribe} does not operate by default on a particular {@link Scheduler}.</dd>
1400
1400
* </dl>
1401
1401
*
1402
- * @param onNext
1402
+ * @param onSuccess
1403
1403
* the {@code Action1<T>} you have designed to accept the emission from the Single
1404
1404
* @param onError
1405
1405
* the {@code Action1<Throwable>} you have designed to accept any error notification from the
@@ -1593,17 +1593,17 @@ public final Subscription subscribe(Subscriber<? super T> subscriber) {
1593
1593
* <dd>{@code subscribe} does not operate by default on a particular {@link Scheduler}.</dd>
1594
1594
* </dl>
1595
1595
*
1596
- * @param subscriber
1597
- * the {@link Subscriber } that will handle the emission or notification from the Single
1596
+ * @param te
1597
+ * the {@link SingleSubscriber } that will handle the emission or notification from the Single
1598
1598
* @return a {@link Subscription} reference can request the {@link Single} stop work.
1599
1599
* @throws IllegalStateException
1600
1600
* if {@code subscribe} is unable to obtain an {@code OnSubscribe<>} function
1601
1601
* @throws IllegalArgumentException
1602
- * if the {@link Subscriber } provided as the argument to {@code subscribe} is {@code null}
1602
+ * if the {@link SingleSubscriber } provided as the argument to {@code subscribe} is {@code null}
1603
1603
* @throws OnErrorNotImplementedException
1604
- * if the {@link Subscriber }'s {@code onError} method is null
1604
+ * if the {@link SingleSubscriber }'s {@code onError} method is null
1605
1605
* @throws RuntimeException
1606
- * if the {@link Subscriber }'s {@code onError} method itself threw a {@code Throwable}
1606
+ * if the {@link SingleSubscriber }'s {@code onError} method itself threw a {@code Throwable}
1607
1607
* @see <a href="http://reactivex.io/documentation/operators/subscribe.html">ReactiveX operators documentation: Subscribe</a>
1608
1608
*/
1609
1609
public final Subscription subscribe (final SingleSubscriber <? super T > te ) {
0 commit comments