OnSubscribeDoOnEach$DoOnEachSubscriber.smali
.class final Lrx/internal/operators/OnSubscribeDoOnEach$DoOnEachSubscriber;
.super Lrx/Subscriber;
.source "OnSubscribeDoOnEach.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lrx/internal/operators/OnSubscribeDoOnEach;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1a
name = "DoOnEachSubscriber"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lrx/Subscriber<",
"TT;>;"
}
.end annotation
# instance fields
.field private final doOnEachObserver:Lrx/Observer;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/Observer<",
"-TT;>;"
}
.end annotation
.end field
.field private done:Z
.field private final subscriber:Lrx/Subscriber;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/Subscriber<",
"-TT;>;"
}
.end annotation
.end field
# direct methods
.method constructor <init>(Lrx/Subscriber;Lrx/Observer;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/Subscriber<",
"-TT;>;",
"Lrx/Observer<",
"-TT;>;)V"
}
.end annotation
.line 1
invoke-direct {p0, p1}, Lrx/Subscriber;-><init>(Lrx/Subscriber;)V
.line 2
iput-object p1, p0, Lrx/internal/operators/OnSubscribeDoOnEach$DoOnEachSubscriber;->subscriber:Lrx/Subscriber;
.line 3
iput-object p2, p0, Lrx/internal/operators/OnSubscribeDoOnEach$DoOnEachSubscriber;->doOnEachObserver:Lrx/Observer;
return-void
.end method
# virtual methods
.method public onCompleted()V
.registers 2
.line 1
iget-boolean v0, p0, Lrx/internal/operators/OnSubscribeDoOnEach$DoOnEachSubscriber;->done:Z
if-eqz v0, :cond_5
return-void
.line 2
:cond_5
:try_start_5
iget-object v0, p0, Lrx/internal/operators/OnSubscribeDoOnEach$DoOnEachSubscriber;->doOnEachObserver:Lrx/Observer;
invoke-interface {v0}, Lrx/Observer;->onCompleted()V
:try_end_a
.catch Ljava/lang/Throwable; {:try_start_5 .. :try_end_a} :catch_13
const/4 v0, 0x1
.line 3
iput-boolean v0, p0, Lrx/internal/operators/OnSubscribeDoOnEach$DoOnEachSubscriber;->done:Z
.line 4
iget-object v0, p0, Lrx/internal/operators/OnSubscribeDoOnEach$DoOnEachSubscriber;->subscriber:Lrx/Subscriber;
invoke-interface {v0}, Lrx/Observer;->onCompleted()V
return-void
:catch_13
move-exception v0
.line 5
invoke-static {v0, p0}, Lrx/exceptions/Exceptions;->throwOrReport(Ljava/lang/Throwable;Lrx/Observer;)V
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 8
.line 1
iget-boolean v0, p0, Lrx/internal/operators/OnSubscribeDoOnEach$DoOnEachSubscriber;->done:Z
if-eqz v0, :cond_8
.line 2
invoke-static {p1}, Lrx/plugins/RxJavaHooks;->onError(Ljava/lang/Throwable;)V
return-void
:cond_8
const/4 v0, 0x1
.line 3
iput-boolean v0, p0, Lrx/internal/operators/OnSubscribeDoOnEach$DoOnEachSubscriber;->done:Z
.line 4
:try_start_b
iget-object v1, p0, Lrx/internal/operators/OnSubscribeDoOnEach$DoOnEachSubscriber;->doOnEachObserver:Lrx/Observer;
invoke-interface {v1, p1}, Lrx/Observer;->onError(Ljava/lang/Throwable;)V
:try_end_10
.catch Ljava/lang/Throwable; {:try_start_b .. :try_end_10} :catch_16
.line 5
iget-object v0, p0, Lrx/internal/operators/OnSubscribeDoOnEach$DoOnEachSubscriber;->subscriber:Lrx/Subscriber;
invoke-interface {v0, p1}, Lrx/Observer;->onError(Ljava/lang/Throwable;)V
return-void
:catch_16
move-exception v1
.line 6
invoke-static {v1}, Lrx/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
.line 7
iget-object v2, p0, Lrx/internal/operators/OnSubscribeDoOnEach$DoOnEachSubscriber;->subscriber:Lrx/Subscriber;
new-instance v3, Lrx/exceptions/CompositeException;
const/4 v4, 0x2
new-array v4, v4, [Ljava/lang/Throwable;
const/4 v5, 0x0
aput-object p1, v4, v5
aput-object v1, v4, v0
invoke-static {v4}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
move-result-object p1
invoke-direct {v3, p1}, Lrx/exceptions/CompositeException;-><init>(Ljava/util/Collection;)V
invoke-interface {v2, v3}, Lrx/Observer;->onError(Ljava/lang/Throwable;)V
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
iget-boolean v0, p0, Lrx/internal/operators/OnSubscribeDoOnEach$DoOnEachSubscriber;->done:Z
if-eqz v0, :cond_5
return-void
.line 2
:cond_5
:try_start_5
iget-object v0, p0, Lrx/internal/operators/OnSubscribeDoOnEach$DoOnEachSubscriber;->doOnEachObserver:Lrx/Observer;
invoke-interface {v0, p1}, Lrx/Observer;->onNext(Ljava/lang/Object;)V
:try_end_a
.catch Ljava/lang/Throwable; {:try_start_5 .. :try_end_a} :catch_10
.line 3
iget-object v0, p0, Lrx/internal/operators/OnSubscribeDoOnEach$DoOnEachSubscriber;->subscriber:Lrx/Subscriber;
invoke-interface {v0, p1}, Lrx/Observer;->onNext(Ljava/lang/Object;)V
return-void
:catch_10
move-exception v0
.line 4
invoke-static {v0, p0, p1}, Lrx/exceptions/Exceptions;->throwOrReport(Ljava/lang/Throwable;Lrx/Observer;Ljava/lang/Object;)V
return-void
.end method