@@ -31,9 +31,9 @@ private Subscriptions() {
31
31
throw new IllegalStateException ("No instances!" );
32
32
}
33
33
/**
34
- * Returns a {@link Subscription} that < code> unsubscribe</code> does nothing except changing
35
- * < code> isUnsubscribed</code> to true. It's stateful and < code> isUnsubscribed</code>
36
- * indicates if < code> unsubscribe</code> is called, which is different from {@link #unsubscribed()}.
34
+ * Returns a {@link Subscription} to which {@ code unsubscribe} does nothing except to change
35
+ * {@ code isUnsubscribed} to {@code true} . It's stateful and {@ code isUnsubscribed} indicates if
36
+ * {@ code unsubscribe} is called, which is different from {@link #unsubscribed()}.
37
37
*
38
38
* <pre><code>
39
39
* Subscription empty = Subscriptions.empty();
@@ -42,23 +42,24 @@ private Subscriptions() {
42
42
* System.out.println(empty.isUnsubscribed()); // true
43
43
* </code></pre>
44
44
*
45
- * @return a {@link Subscription} that < code> unsubscribe</code> does nothing except changing
46
- * < code> isUnsubscribed</code> to true.
45
+ * @return a {@link Subscription} to which {@ code unsubscribe} does nothing except to change
46
+ * {@ code isUnsubscribed} to {@code true}
47
47
*/
48
48
public static Subscription empty () {
49
49
return BooleanSubscription .create ();
50
50
}
51
51
52
52
/**
53
- * Returns a {@link Subscription} that < code> unsubscribe</code> does nothing but is already unsubscribed.
54
- * Its < code> isUnsubscribed</code> always return true, which is different from {@link #empty()}.
53
+ * Returns a {@link Subscription} to which {@ code unsubscribe} does nothing, as it is already unsubscribed.
54
+ * Its {@ code isUnsubscribed} always returns {@code true} , which is different from {@link #empty()}.
55
55
*
56
56
* <pre><code>
57
57
* Subscription unsubscribed = Subscriptions.unsubscribed();
58
58
* System.out.println(unsubscribed.isUnsubscribed()); // true
59
59
* </code></pre>
60
60
*
61
- * @return a {@link Subscription} that <code>unsubscribe</code> does nothing but is already unsubscribed.
61
+ * @return a {@link Subscription} to which {@code unsubscribe} does nothing, as it is already unsubscribed
62
+ * @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
62
63
*/
63
64
@ Experimental
64
65
public static Subscription unsubscribed () {
0 commit comments