Skip to content

Commit ac5b561

Browse files
committed
adding javadocs to ChainedSubscription methods
1 parent 798fa7e commit ac5b561

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

rxjava-core/src/main/java/rx/subscriptions/ChainedSubscription.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ public synchronized boolean isUnsubscribed() {
4646
return unsubscribed;
4747
}
4848

49+
/**
50+
* Adds a new {@link Subscription} to this {@code ChainedSubscription} if the {@code ChainedSubscription} is
51+
* not yet unsubscribed. If the {@code ChainedSubscription} <em>is</em> unsubscribed, {@code add} will
52+
* indicate this by explicitly unsubscribing the new {@code Subscription} as well.
53+
*
54+
* @param s
55+
* the {@link Subscription} to add
56+
*/
4957
public void add(final Subscription s) {
5058
Subscription unsubscribe = null;
5159
synchronized (this) {
@@ -76,6 +84,10 @@ public void unsubscribe() {
7684
unsubscribeFromAll(subscriptions);
7785
}
7886

87+
/**
88+
* @warn javadoc missing
89+
* @param subscriptions
90+
*/
7991
private static void unsubscribeFromAll(Collection<Subscription> subscriptions) {
8092
if (subscriptions == null) {
8193
return;

0 commit comments

Comments
 (0)