ObservableScalarXMap$a.smali
.class final Lio/reactivex/internal/operators/observable/ObservableScalarXMap$a;
.super Lio/reactivex/p;
.source "ObservableScalarXMap.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/internal/operators/observable/ObservableScalarXMap;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "a"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/p<",
"TR;>;"
}
.end annotation
# instance fields
.field final a:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
.field final b:Lio/reactivex/b/o;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/b/o<",
"-TT;+",
"Lio/reactivex/u<",
"+TR;>;>;"
}
.end annotation
.end field
# direct methods
.method constructor <init>(Ljava/lang/Object;Lio/reactivex/b/o;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;",
"Lio/reactivex/b/o<",
"-TT;+",
"Lio/reactivex/u<",
"+TR;>;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Lio/reactivex/p;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableScalarXMap$a;->a:Ljava/lang/Object;
.line 3
iput-object p2, p0, Lio/reactivex/internal/operators/observable/ObservableScalarXMap$a;->b:Lio/reactivex/b/o;
return-void
.end method
# virtual methods
.method public subscribeActual(Lio/reactivex/w;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/w<",
"-TR;>;)V"
}
.end annotation
.line 1
:try_start_0
iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableScalarXMap$a;->b:Lio/reactivex/b/o;
iget-object v1, p0, Lio/reactivex/internal/operators/observable/ObservableScalarXMap$a;->a:Ljava/lang/Object;
invoke-interface {v0, v1}, Lio/reactivex/b/o;->apply(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
const-string v1, "The mapper returned a null ObservableSource"
invoke-static {v0, v1}, Lio/reactivex/internal/functions/a;->a(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
check-cast v0, Lio/reactivex/u;
:try_end_f
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_f} :catch_37
.line 2
instance-of v1, v0, Ljava/util/concurrent/Callable;
if-eqz v1, :cond_33
.line 3
:try_start_13
check-cast v0, Ljava/util/concurrent/Callable;
invoke-interface {v0}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;
move-result-object v0
:try_end_19
.catch Ljava/lang/Throwable; {:try_start_13 .. :try_end_19} :catch_2b
if-nez v0, :cond_1f
.line 4
invoke-static {p1}, Lio/reactivex/internal/disposables/EmptyDisposable;->complete(Lio/reactivex/w;)V
return-void
.line 5
:cond_1f
new-instance v1, Lio/reactivex/internal/operators/observable/ObservableScalarXMap$ScalarDisposable;
invoke-direct {v1, p1, v0}, Lio/reactivex/internal/operators/observable/ObservableScalarXMap$ScalarDisposable;-><init>(Lio/reactivex/w;Ljava/lang/Object;)V
.line 6
invoke-interface {p1, v1}, Lio/reactivex/w;->onSubscribe(Lio/reactivex/disposables/b;)V
.line 7
invoke-virtual {v1}, Lio/reactivex/internal/operators/observable/ObservableScalarXMap$ScalarDisposable;->run()V
goto :goto_36
:catch_2b
move-exception v0
.line 8
invoke-static {v0}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 9
invoke-static {v0, p1}, Lio/reactivex/internal/disposables/EmptyDisposable;->error(Ljava/lang/Throwable;Lio/reactivex/w;)V
return-void
.line 10
:cond_33
invoke-interface {v0, p1}, Lio/reactivex/u;->subscribe(Lio/reactivex/w;)V
:goto_36
return-void
:catch_37
move-exception v0
.line 11
invoke-static {v0, p1}, Lio/reactivex/internal/disposables/EmptyDisposable;->error(Ljava/lang/Throwable;Lio/reactivex/w;)V
return-void
.end method