115 lines
2.8 KiB
Smali
115 lines
2.8 KiB
Smali
.class abstract Lio/reactivex/internal/operators/flowable/FlowableCreate$NoOverflowBaseAsyncEmitter;
|
|
.super Lio/reactivex/internal/operators/flowable/FlowableCreate$BaseEmitter;
|
|
.source "FlowableCreate.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lio/reactivex/internal/operators/flowable/FlowableCreate;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x409
|
|
name = "NoOverflowBaseAsyncEmitter"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lio/reactivex/internal/operators/flowable/FlowableCreate$BaseEmitter<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final serialVersionUID:J = 0x3948ba7d6479d0d1L
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lok/d;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lok/d<",
|
|
"-TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lio/reactivex/internal/operators/flowable/FlowableCreate$BaseEmitter;-><init>(Lok/d;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final onNext(Ljava/lang/Object;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lio/reactivex/internal/operators/flowable/FlowableCreate$BaseEmitter;->isCancelled()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
if-nez p1, :cond_1
|
|
|
|
.line 2
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
const-string v0, "onNext called with null. Null values are generally not allowed in 2.x operators and sources."
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p1}, Lio/reactivex/internal/operators/flowable/FlowableCreate$BaseEmitter;->onError(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
|
|
.line 3
|
|
:cond_1
|
|
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 4
|
|
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableCreate$BaseEmitter;->downstream:Lok/d;
|
|
|
|
invoke-interface {v0, p1}, Lok/d;->onNext(Ljava/lang/Object;)V
|
|
|
|
const-wide/16 v0, 0x1
|
|
|
|
.line 5
|
|
invoke-static {p0, v0, v1}, Lio/reactivex/internal/util/b;->e(Ljava/util/concurrent/atomic/AtomicLong;J)J
|
|
|
|
goto :goto_0
|
|
|
|
.line 6
|
|
:cond_2
|
|
invoke-virtual {p0}, Lio/reactivex/internal/operators/flowable/FlowableCreate$NoOverflowBaseAsyncEmitter;->onOverflow()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public abstract onOverflow()V
|
|
.end method
|