tmap/smali_classes5/io/reactivex/rxjava3/internal/observers/CallbackCompletableObserver.smali
2022-06-10 21:38:30 +09:00

293 lines
7.0 KiB
Smali

.class public final Lio/reactivex/rxjava3/internal/observers/CallbackCompletableObserver;
.super Ljava/util/concurrent/atomic/AtomicReference;
.source "CallbackCompletableObserver.java"
# interfaces
.implements Lai/d;
.implements Lio/reactivex/rxjava3/disposables/c;
.implements Lci/g;
.implements Lio/reactivex/rxjava3/observers/g;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReference<",
"Lio/reactivex/rxjava3/disposables/c;",
">;",
"Lai/d;",
"Lio/reactivex/rxjava3/disposables/c;",
"Lci/g<",
"Ljava/lang/Throwable;",
">;",
"Lio/reactivex/rxjava3/observers/g;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = -0x3c8666afd0faa5aaL
# instance fields
.field public final onComplete:Lci/a;
.field public final onError:Lci/g;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lci/g<",
"-",
"Ljava/lang/Throwable;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lci/a;)V
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"onComplete"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
.line 2
iput-object p0, p0, Lio/reactivex/rxjava3/internal/observers/CallbackCompletableObserver;->onError:Lci/g;
.line 3
iput-object p1, p0, Lio/reactivex/rxjava3/internal/observers/CallbackCompletableObserver;->onComplete:Lci/a;
return-void
.end method
.method public constructor <init>(Lci/g;Lci/a;)V
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"onError",
"onComplete"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lci/g<",
"-",
"Ljava/lang/Throwable;",
">;",
"Lci/a;",
")V"
}
.end annotation
.line 4
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
.line 5
iput-object p1, p0, Lio/reactivex/rxjava3/internal/observers/CallbackCompletableObserver;->onError:Lci/g;
.line 6
iput-object p2, p0, Lio/reactivex/rxjava3/internal/observers/CallbackCompletableObserver;->onComplete:Lci/a;
return-void
.end method
# virtual methods
.method public bridge synthetic accept(Ljava/lang/Object;)V
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x1000
}
names = {
"e"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.line 1
check-cast p1, Ljava/lang/Throwable;
invoke-virtual {p0, p1}, Lio/reactivex/rxjava3/internal/observers/CallbackCompletableObserver;->accept(Ljava/lang/Throwable;)V
return-void
.end method
.method public accept(Ljava/lang/Throwable;)V
.locals 1
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"e"
}
.end annotation
.line 2
new-instance v0, Lio/reactivex/rxjava3/exceptions/OnErrorNotImplementedException;
invoke-direct {v0, p1}, Lio/reactivex/rxjava3/exceptions/OnErrorNotImplementedException;-><init>(Ljava/lang/Throwable;)V
invoke-static {v0}, Lji/a;->Y(Ljava/lang/Throwable;)V
return-void
.end method
.method public dispose()V
.locals 0
.line 1
invoke-static {p0}, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->dispose(Ljava/util/concurrent/atomic/AtomicReference;)Z
return-void
.end method
.method public hasCustomOnError()Z
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/internal/observers/CallbackCompletableObserver;->onError:Lci/g;
if-eq v0, p0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public isDisposed()Z
.locals 2
.line 1
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->DISPOSED:Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
if-ne v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public onComplete()V
.locals 1
.line 1
:try_start_0
iget-object v0, p0, Lio/reactivex/rxjava3/internal/observers/CallbackCompletableObserver;->onComplete:Lci/a;
invoke-interface {v0}, Lci/a;->run()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception v0
.line 2
invoke-static {v0}, Lio/reactivex/rxjava3/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 3
invoke-static {v0}, Lji/a;->Y(Ljava/lang/Throwable;)V
.line 4
:goto_0
sget-object v0, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->DISPOSED:Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
invoke-virtual {p0, v0}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.locals 1
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"e"
}
.end annotation
.line 1
:try_start_0
iget-object v0, p0, Lio/reactivex/rxjava3/internal/observers/CallbackCompletableObserver;->onError:Lci/g;
invoke-interface {v0, p1}, Lci/g;->accept(Ljava/lang/Object;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception p1
.line 2
invoke-static {p1}, Lio/reactivex/rxjava3/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 3
invoke-static {p1}, Lji/a;->Y(Ljava/lang/Throwable;)V
.line 4
:goto_0
sget-object p1, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->DISPOSED:Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
invoke-virtual {p0, p1}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
return-void
.end method
.method public onSubscribe(Lio/reactivex/rxjava3/disposables/c;)V
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"d"
}
.end annotation
.line 1
invoke-static {p0, p1}, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->setOnce(Ljava/util/concurrent/atomic/AtomicReference;Lio/reactivex/rxjava3/disposables/c;)Z
return-void
.end method