urbanairship-core/src/main/java/com/urbanairship/reactive/CompoundSubscription.java
public synchronized void add(Subscription subscription) {
        if (subscription.isCancelled()) {
            return;
        }
        if (isCancelled()) {
            subscription.cancel();
        } else {
            subscriptions.add(subscription);
        }
    }
/**
     * Adds a Subscription
     * @param subscription The subscription.
     */
Adds a Subscription
@param subscription The subscription.
Adds a Subscription @param subscription The subscription .
public synchronized void add(Subscription subscription) {
        if (subscription.isCancelled()) {
            return;
        }
        if (isCancelled()) {
            subscription.cancel();
        } else {
            subscriptions.add(subscription);
        }
    }
public synchronized void add ( Subscription subscription ) { if ( subscription . isCancelled ( ) ) { return ; } if ( isCancelled ( ) ) { subscription . cancel ( ) ; } else { subscriptions . add ( subscription ) ; } }
Adds a Subscription
 @param subscription The subscription.
Adds a Subscription @param subscription The subscription .