@@ -40,8 +40,8 @@ public interface Disposable {
40
40
/**
41
41
* Construct a {@code Disposable} by wrapping a {@link Runnable} that is
42
42
* executed exactly once when the {@code Disposable} is disposed.
43
- * @param run the Runnable to wrap
44
- * @return the new Disposable instance
43
+ * @param run the {@code Runnable} to wrap
44
+ * @return the new {@code Disposable} instance
45
45
* @throws NullPointerException if {@code run} is {@code null}
46
46
* @since 3.0.0
47
47
*/
@@ -54,8 +54,8 @@ static Disposable fromRunnable(@NonNull Runnable run) {
54
54
/**
55
55
* Construct a {@code Disposable} by wrapping a {@link Action} that is
56
56
* executed exactly once when the {@code Disposable} is disposed.
57
- * @param action the Action to wrap
58
- * @return the new Disposable instance
57
+ * @param action the {@code Action} to wrap
58
+ * @return the new {@code Disposable} instance
59
59
* @throws NullPointerException if {@code action} is {@code null}
60
60
* @since 3.0.0
61
61
*/
@@ -70,8 +70,8 @@ static Disposable fromAction(@NonNull Action action) {
70
70
* cancelled exactly once when the {@code Disposable} is disposed.
71
71
* <p>
72
72
* The {@code Future} is cancelled with {@code mayInterruptIfRunning == true}.
73
- * @param future the Future to wrap
74
- * @return the new Disposable instance
73
+ * @param future the {@code Future} to wrap
74
+ * @return the new {@code Disposable} instance
75
75
* @throws NullPointerException if {@code future} is {@code null}
76
76
* @see #fromFuture(Future, boolean)
77
77
* @since 3.0.0
@@ -85,9 +85,9 @@ static Disposable fromFuture(@NonNull Future<?> future) {
85
85
/**
86
86
* Construct a {@code Disposable} by wrapping a {@link Future} that is
87
87
* cancelled exactly once when the {@code Disposable} is disposed.
88
- * @param future the Future to wrap
88
+ * @param future the {@code Future} to wrap
89
89
* @param allowInterrupt if true, the future cancel happens via {@code Future.cancel(true)}
90
- * @return the new Disposable instance
90
+ * @return the new {@code Disposable} instance
91
91
* @throws NullPointerException if {@code future} is {@code null}
92
92
* @since 3.0.0
93
93
*/
@@ -100,8 +100,8 @@ static Disposable fromFuture(@NonNull Future<?> future, boolean allowInterrupt)
100
100
/**
101
101
* Construct a {@code Disposable} by wrapping a {@link Subscription} that is
102
102
* cancelled exactly once when the {@code Disposable} is disposed.
103
- * @param subscription the Runnable to wrap
104
- * @return the new Disposable instance
103
+ * @param subscription the {@code Runnable} to wrap
104
+ * @return the new {@code Disposable} instance
105
105
* @throws NullPointerException if {@code subscription} is {@code null}
106
106
* @since 3.0.0
107
107
*/
@@ -114,8 +114,8 @@ static Disposable fromSubscription(@NonNull Subscription subscription) {
114
114
/**
115
115
* Construct a {@code Disposable} by wrapping an {@link AutoCloseable} that is
116
116
* closed exactly once when the {@code Disposable} is disposed.
117
- * @param autoCloseable the AutoCloseable to wrap
118
- * @return the new Disposable instance
117
+ * @param autoCloseable the {@code AutoCloseable} to wrap
118
+ * @return the new {@code Disposable} instance
119
119
* @throws NullPointerException if {@code autoCloseable} is {@code null}
120
120
* @since 3.0.0
121
121
*/
@@ -128,8 +128,8 @@ static Disposable fromAutoCloseable(@NonNull AutoCloseable autoCloseable) {
128
128
/**
129
129
* Construct an {@link AutoCloseable} by wrapping a {@code Disposable} that is
130
130
* disposed when the returned {@code AutoCloseable} is closed.
131
- * @param disposable the Disposable instance
132
- * @return the new AutoCloseable instance
131
+ * @param disposable the {@code Disposable} instance
132
+ * @return the new {@code AutoCloseable} instance
133
133
* @throws NullPointerException if {@code disposable} is {@code null}
134
134
* @since 3.0.0
135
135
*/
0 commit comments