Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CheckReturnValue annotations to subscribeWith #53

Merged
merged 1 commit into from Mar 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -18,6 +18,7 @@

import io.reactivex.Completable;
import io.reactivex.CompletableObserver;
import io.reactivex.annotations.CheckReturnValue;
import io.reactivex.disposables.Disposable;
import io.reactivex.functions.Action;
import io.reactivex.functions.Consumer;
Expand Down Expand Up @@ -58,5 +59,5 @@ public interface CompletableSubscribeProxy {
*
* @return a {@link CompletableObserver}
*/
<E extends CompletableObserver> E subscribeWith(E observer);
@CheckReturnValue <E extends CompletableObserver> E subscribeWith(E observer);
}
Expand Up @@ -17,6 +17,7 @@
package com.uber.autodispose;

import io.reactivex.Flowable;
import io.reactivex.annotations.CheckReturnValue;
import io.reactivex.disposables.Disposable;
import io.reactivex.functions.Action;
import io.reactivex.functions.Consumer;
Expand Down Expand Up @@ -75,5 +76,5 @@ Disposable subscribe(Consumer<? super T> onNext, Consumer<? super Throwable> onE
*
* @return an {@link Subscriber}
*/
<E extends Subscriber<? super T>> E subscribeWith(E observer);
@CheckReturnValue <E extends Subscriber<? super T>> E subscribeWith(E observer);
}
Expand Up @@ -18,6 +18,7 @@

import io.reactivex.Maybe;
import io.reactivex.MaybeObserver;
import io.reactivex.annotations.CheckReturnValue;
import io.reactivex.disposables.Disposable;
import io.reactivex.functions.Action;
import io.reactivex.functions.Consumer;
Expand Down Expand Up @@ -66,5 +67,5 @@ Disposable subscribe(Consumer<? super T> onSuccess, Consumer<? super Throwable>
*
* @return a {@link MaybeObserver}
*/
<E extends MaybeObserver<? super T>> E subscribeWith(E observer);
@CheckReturnValue <E extends MaybeObserver<? super T>> E subscribeWith(E observer);
}
Expand Up @@ -18,6 +18,7 @@

import io.reactivex.Observable;
import io.reactivex.Observer;
import io.reactivex.annotations.CheckReturnValue;
import io.reactivex.disposables.Disposable;
import io.reactivex.functions.Action;
import io.reactivex.functions.Consumer;
Expand Down Expand Up @@ -75,5 +76,5 @@ Disposable subscribe(Consumer<? super T> onNext, Consumer<? super Throwable> onE
*
* @return an {@link Observer}
*/
<E extends Observer<? super T>> E subscribeWith(E observer);
@CheckReturnValue <E extends Observer<? super T>> E subscribeWith(E observer);
}
Expand Up @@ -18,6 +18,7 @@

import io.reactivex.Single;
import io.reactivex.SingleObserver;
import io.reactivex.annotations.CheckReturnValue;
import io.reactivex.disposables.Disposable;
import io.reactivex.functions.BiConsumer;
import io.reactivex.functions.Consumer;
Expand Down Expand Up @@ -65,5 +66,5 @@ public interface SingleSubscribeProxy<T> {
*
* @return a {@link SingleObserver}
*/
<E extends SingleObserver<? super T>> E subscribeWith(E observer);
@CheckReturnValue <E extends SingleObserver<? super T>> E subscribeWith(E observer);
}