ObservableUsing.smali
.class public final Lio/reactivex/internal/operators/observable/ObservableUsing;
.super Lio/reactivex/k;
.source "ObservableUsing.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"D:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/k",
"<TT;>;"
}
.end annotation
# instance fields
.field private bRv:Ljava/util/concurrent/Callable;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/Callable",
"<+TD;>;"
}
.end annotation
.end field
.field private bRw:Lio/reactivex/b/h;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/b/h",
"<-TD;+",
"Lio/reactivex/p",
"<+TT;>;>;"
}
.end annotation
.end field
.field private disposer:Lio/reactivex/b/g;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/b/g",
"<-TD;>;"
}
.end annotation
.end field
.field private eager:Z
# direct methods
.method public constructor <init>(Ljava/util/concurrent/Callable;Lio/reactivex/b/h;Lio/reactivex/b/g;Z)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/concurrent/Callable",
"<+TD;>;",
"Lio/reactivex/b/h",
"<-TD;+",
"Lio/reactivex/p",
"<+TT;>;>;",
"Lio/reactivex/b/g",
"<-TD;>;Z)V"
}
.end annotation
.prologue
.line 36
invoke-direct {p0}, Lio/reactivex/k;-><init>()V
.line 37
iput-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableUsing;->bRv:Ljava/util/concurrent/Callable;
.line 38
iput-object p2, p0, Lio/reactivex/internal/operators/observable/ObservableUsing;->bRw:Lio/reactivex/b/h;
.line 39
iput-object p3, p0, Lio/reactivex/internal/operators/observable/ObservableUsing;->disposer:Lio/reactivex/b/g;
.line 40
iput-boolean p4, p0, Lio/reactivex/internal/operators/observable/ObservableUsing;->eager:Z
.line 41
return-void
.end method
# virtual methods
.method public final subscribeActual(Lio/reactivex/r;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/r",
"<-TT;>;)V"
}
.end annotation
.prologue
.line 48
:try_start_0
iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableUsing;->bRv:Ljava/util/concurrent/Callable;
invoke-interface {v0}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;
:try_end_5
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_5} :catch_21
move-result-object v1
.line 57
:try_start_6
iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableUsing;->bRw:Lio/reactivex/b/h;
invoke-interface {v0, v1}, Lio/reactivex/b/h;->apply(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
const-string v2, "The sourceSupplier returned a null ObservableSource"
invoke-static {v0, v2}, Lio/reactivex/internal/functions/aj;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lio/reactivex/p;
:try_end_14
.catch Ljava/lang/Throwable; {:try_start_6 .. :try_end_14} :catch_29
.line 71
new-instance v2, Lio/reactivex/internal/operators/observable/ObservableUsing$UsingObserver;
iget-object v3, p0, Lio/reactivex/internal/operators/observable/ObservableUsing;->disposer:Lio/reactivex/b/g;
iget-boolean v4, p0, Lio/reactivex/internal/operators/observable/ObservableUsing;->eager:Z
invoke-direct {v2, p1, v1, v3, v4}, Lio/reactivex/internal/operators/observable/ObservableUsing$UsingObserver;-><init>(Lio/reactivex/r;Ljava/lang/Object;Lio/reactivex/b/g;Z)V
.line 73
invoke-interface {v0, v2}, Lio/reactivex/p;->subscribe(Lio/reactivex/r;)V
.line 74
:goto_20
return-void
.line 49
:catch_21
move-exception v0
.line 50
invoke-static {v0}, Lio/reactivex/exceptions/d;->throwIfFatal(Ljava/lang/Throwable;)V
.line 51
invoke-static {v0, p1}, Lio/reactivex/internal/disposables/EmptyDisposable;->error(Ljava/lang/Throwable;Lio/reactivex/r;)V
goto :goto_20
.line 58
:catch_29
move-exception v0
.line 59
invoke-static {v0}, Lio/reactivex/exceptions/d;->throwIfFatal(Ljava/lang/Throwable;)V
.line 61
:try_start_2d
iget-object v2, p0, Lio/reactivex/internal/operators/observable/ObservableUsing;->disposer:Lio/reactivex/b/g;
invoke-interface {v2, v1}, Lio/reactivex/b/g;->accept(Ljava/lang/Object;)V
:try_end_32
.catch Ljava/lang/Throwable; {:try_start_2d .. :try_end_32} :catch_36
.line 67
invoke-static {v0, p1}, Lio/reactivex/internal/disposables/EmptyDisposable;->error(Ljava/lang/Throwable;Lio/reactivex/r;)V
goto :goto_20
.line 62
:catch_36
move-exception v1
.line 63
invoke-static {v1}, Lio/reactivex/exceptions/d;->throwIfFatal(Ljava/lang/Throwable;)V
.line 64
new-instance v2, Lio/reactivex/exceptions/CompositeException;
const/4 v3, 0x2
new-array v3, v3, [Ljava/lang/Throwable;
const/4 v4, 0x0
aput-object v0, v3, v4
const/4 v0, 0x1
aput-object v1, v3, v0
invoke-direct {v2, v3}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
invoke-static {v2, p1}, Lio/reactivex/internal/disposables/EmptyDisposable;->error(Ljava/lang/Throwable;Lio/reactivex/r;)V
goto :goto_20
.end method