219 lines
5.3 KiB
Smali
219 lines
5.3 KiB
Smali
.class public final Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream;
|
|
.super Lai/m;
|
|
.source "FlowableFromStream.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$StreamConditionalSubscription;,
|
|
Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$StreamSubscription;,
|
|
Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$AbstractStreamSubscription;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lai/m<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final b:Ljava/util/stream/Stream;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/stream/Stream<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/util/stream/Stream;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"stream"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/stream/Stream<",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lai/m;-><init>()V
|
|
|
|
.line 2
|
|
iput-object p1, p0, Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream;->b:Ljava/util/stream/Stream;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static n9(Ljava/lang/AutoCloseable;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"c"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
:try_start_0
|
|
invoke-interface {p0}, Ljava/lang/AutoCloseable;->close()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 2
|
|
invoke-static {p0}, Lio/reactivex/rxjava3/exceptions/a;->b(Ljava/lang/Throwable;)V
|
|
|
|
.line 3
|
|
invoke-static {p0}, Lji/a;->Y(Ljava/lang/Throwable;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static o9(Lok/d;Ljava/util/stream/Stream;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"s",
|
|
"stream"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lok/d<",
|
|
"-TT;>;",
|
|
"Ljava/util/stream/Stream<",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
:try_start_0
|
|
invoke-interface {p1}, Ljava/util/stream/Stream;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 3
|
|
invoke-static {p0}, Lio/reactivex/rxjava3/internal/subscriptions/EmptySubscription;->complete(Lok/d;)V
|
|
|
|
.line 4
|
|
invoke-static {p1}, Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream;->n9(Ljava/lang/AutoCloseable;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
return-void
|
|
|
|
.line 5
|
|
:cond_0
|
|
instance-of v1, p0, Lei/c;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 6
|
|
new-instance v1, Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$StreamConditionalSubscription;
|
|
|
|
move-object v2, p0
|
|
|
|
check-cast v2, Lei/c;
|
|
|
|
invoke-direct {v1, v2, v0, p1}, Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$StreamConditionalSubscription;-><init>(Lei/c;Ljava/util/Iterator;Ljava/lang/AutoCloseable;)V
|
|
|
|
invoke-interface {p0, v1}, Lok/d;->onSubscribe(Lok/e;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 7
|
|
:cond_1
|
|
new-instance v1, Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$StreamSubscription;
|
|
|
|
invoke-direct {v1, p0, v0, p1}, Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$StreamSubscription;-><init>(Lok/d;Ljava/util/Iterator;Ljava/lang/AutoCloseable;)V
|
|
|
|
invoke-interface {p0, v1}, Lok/d;->onSubscribe(Lok/e;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
.line 8
|
|
invoke-static {v0}, Lio/reactivex/rxjava3/exceptions/a;->b(Ljava/lang/Throwable;)V
|
|
|
|
.line 9
|
|
invoke-static {v0, p0}, Lio/reactivex/rxjava3/internal/subscriptions/EmptySubscription;->error(Ljava/lang/Throwable;Lok/d;)V
|
|
|
|
.line 10
|
|
invoke-static {p1}, Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream;->n9(Ljava/lang/AutoCloseable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public O6(Lok/d;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"s"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lok/d<",
|
|
"-TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream;->b:Ljava/util/stream/Stream;
|
|
|
|
invoke-static {p1, v0}, Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream;->o9(Lok/d;Ljava/util/stream/Stream;)V
|
|
|
|
return-void
|
|
.end method
|