From bda104041416b57787962828533c18fde2ceeb3b Mon Sep 17 00:00:00 2001 From: Matt Wysocki Date: Fri, 22 Sep 2017 15:35:15 -0700 Subject: [PATCH] Add comments and @Experimental annotation --- .../observers/AutoDisposingCompletableObserver.java | 4 +++- .../autodispose/observers/AutoDisposingMaybeObserver.java | 4 +++- .../uber/autodispose/observers/AutoDisposingObserver.java | 5 ++++- .../autodispose/observers/AutoDisposingSingleObserver.java | 4 +++- .../uber/autodispose/observers/AutoDisposingSubscriber.java | 4 +++- 5 files changed, 16 insertions(+), 5 deletions(-) diff --git a/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingCompletableObserver.java b/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingCompletableObserver.java index 003c4dc44..a9b766ae6 100644 --- a/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingCompletableObserver.java +++ b/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingCompletableObserver.java @@ -17,6 +17,7 @@ package com.uber.autodispose.observers; import io.reactivex.CompletableObserver; +import io.reactivex.annotations.Experimental; import io.reactivex.disposables.Disposable; /** @@ -27,7 +28,8 @@ public interface AutoDisposingCompletableObserver extends CompletableObserver, D /** * @return The delegate {@link CompletableObserver} that is used under the hood forintrospection - * purposes. + * purposes. This will be updated once LambdaIntrospection is out of @Experimental in RxJava. */ + @Experimental CompletableObserver delegateObserver(); } diff --git a/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingMaybeObserver.java b/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingMaybeObserver.java index 0e8df02e8..d4db418ec 100644 --- a/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingMaybeObserver.java +++ b/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingMaybeObserver.java @@ -17,6 +17,7 @@ package com.uber.autodispose.observers; import io.reactivex.MaybeObserver; +import io.reactivex.annotations.Experimental; import io.reactivex.disposables.Disposable; /** @@ -27,7 +28,8 @@ public interface AutoDisposingMaybeObserver extends MaybeObserver, Disposa /** * @return The delegate {@link MayberObserver} that is used under the hood for introspection - * purposes. + * purposes. This will be updated once LambdaIntrospection is out of @Experimental in RxJava. */ + @Experimental MaybeObserver delegateObserver(); } diff --git a/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingObserver.java b/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingObserver.java index 7f98c7443..b8aeda459 100644 --- a/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingObserver.java +++ b/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingObserver.java @@ -17,6 +17,7 @@ package com.uber.autodispose.observers; import io.reactivex.Observer; +import io.reactivex.annotations.Experimental; import io.reactivex.disposables.Disposable; /** @@ -26,7 +27,9 @@ public interface AutoDisposingObserver extends Observer, Disposable { /** - * @return The delegate {@link Observer} that is used under the hood for introspection purposes. + * @return The delegate {@link Observer} that is used under the hood for introspection purpose. + * This will be updated once LambdaIntrospection is out of @Experimental in RxJava. */ + @Experimental Observer delegateObserver(); } diff --git a/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingSingleObserver.java b/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingSingleObserver.java index d5dabbd47..d013acb70 100644 --- a/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingSingleObserver.java +++ b/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingSingleObserver.java @@ -17,6 +17,7 @@ package com.uber.autodispose.observers; import io.reactivex.SingleObserver; +import io.reactivex.annotations.Experimental; import io.reactivex.disposables.Disposable; /** @@ -27,7 +28,8 @@ public interface AutoDisposingSingleObserver extends SingleObserver, Dispo /** * @return The delegate {@link SingleObserver} that is used under the hood for introspection - * purposes. + * purposes. This will be updated once LambdaIntrospection is out of @Experimental in RxJava. */ + @Experimental SingleObserver delegateObserver(); } diff --git a/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingSubscriber.java b/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingSubscriber.java index ddbe754c7..2740dc1ff 100644 --- a/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingSubscriber.java +++ b/autodispose/src/main/java/com/uber/autodispose/observers/AutoDisposingSubscriber.java @@ -17,6 +17,7 @@ package com.uber.autodispose.observers; import io.reactivex.FlowableSubscriber; +import io.reactivex.annotations.Experimental; import io.reactivex.disposables.Disposable; import org.reactivestreams.Subscriber; import org.reactivestreams.Subscription; @@ -30,7 +31,8 @@ public interface AutoDisposingSubscriber /** * @return The delegate {@link Subscriber} that is used under the hood for introspection - * purposes. + * purposes. This will be updated once LambdaIntrospection is out of @Experimental in RxJava. */ + @Experimental Subscriber delegateSubscriber(); }