public final class io.reactivex.observers.SafeObserver<T> implements io.reactivex.Observer<T>, io.reactivex.disposables.Disposable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.reactivex.observers.SafeObserver
super_class: java.lang.Object
{
final io.reactivex.Observer<? super T> downstream;
descriptor: Lio/reactivex/Observer;
flags: (0x0010) ACC_FINAL
Signature: Lio/reactivex/Observer<-TT;>;
io.reactivex.disposables.Disposable upstream;
descriptor: Lio/reactivex/disposables/Disposable;
flags: (0x0000)
boolean done;
descriptor: Z
flags: (0x0000)
public void <init>(io.reactivex.Observer<? super T>);
descriptor: (Lio/reactivex/Observer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.reactivex.observers.SafeObserver.downstream:Lio/reactivex/Observer;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/observers/SafeObserver<TT;>;
0 3 1 downstream Lio/reactivex/Observer<-TT;>;
Signature: (Lio/reactivex/Observer<-TT;>;)V
RuntimeInvisibleParameterAnnotations:
0:
io.reactivex.annotations.NonNull()
MethodParameters:
Name Flags
downstream
public void onSubscribe(io.reactivex.disposables.Disposable);
descriptor: (Lio/reactivex/disposables/Disposable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.observers.SafeObserver.upstream:Lio/reactivex/disposables/Disposable;
aload 1
invokestatic io.reactivex.internal.disposables.DisposableHelper.validate:(Lio/reactivex/disposables/Disposable;Lio/reactivex/disposables/Disposable;)Z
ifeq 14
1: aload 0
aload 1
putfield io.reactivex.observers.SafeObserver.upstream:Lio/reactivex/disposables/Disposable;
2: aload 0
getfield io.reactivex.observers.SafeObserver.downstream:Lio/reactivex/Observer;
aload 0
invokeinterface io.reactivex.Observer.onSubscribe:(Lio/reactivex/disposables/Disposable;)V
3: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
4: astore 2
start local 2 5: aload 2
invokestatic io.reactivex.exceptions.Exceptions.throwIfFatal:(Ljava/lang/Throwable;)V
6: aload 0
iconst_1
putfield io.reactivex.observers.SafeObserver.done:Z
7: aload 1
invokeinterface io.reactivex.disposables.Disposable.dispose:()V
8: goto 13
StackMap locals: io.reactivex.observers.SafeObserver io.reactivex.disposables.Disposable java.lang.Throwable
StackMap stack: java.lang.Throwable
9: astore 3
start local 3 10: aload 3
invokestatic io.reactivex.exceptions.Exceptions.throwIfFatal:(Ljava/lang/Throwable;)V
11: new io.reactivex.exceptions.CompositeException
dup
iconst_2
anewarray java.lang.Throwable
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 3
aastore
invokespecial io.reactivex.exceptions.CompositeException.<init>:([Ljava/lang/Throwable;)V
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
12: return
end local 3 13: StackMap locals:
StackMap stack:
aload 2
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
end local 2 14: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lio/reactivex/observers/SafeObserver<TT;>;
0 15 1 d Lio/reactivex/disposables/Disposable;
5 14 2 e Ljava/lang/Throwable;
10 13 3 e1 Ljava/lang/Throwable;
Exception table:
from to target type
2 3 4 Class java.lang.Throwable
7 8 9 Class java.lang.Throwable
RuntimeInvisibleParameterAnnotations:
0:
io.reactivex.annotations.NonNull()
MethodParameters:
Name Flags
d
public void dispose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.observers.SafeObserver.upstream:Lio/reactivex/disposables/Disposable;
invokeinterface io.reactivex.disposables.Disposable.dispose:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/observers/SafeObserver<TT;>;
public boolean isDisposed();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.observers.SafeObserver.upstream:Lio/reactivex/disposables/Disposable;
invokeinterface io.reactivex.disposables.Disposable.isDisposed:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/reactivex/observers/SafeObserver<TT;>;
public void onNext();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.observers.SafeObserver.done:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.SafeObserver.upstream:Lio/reactivex/disposables/Disposable;
ifnonnull 5
3: aload 0
invokevirtual io.reactivex.observers.SafeObserver.onNextNoSubscription:()V
4: return
5: StackMap locals:
StackMap stack:
aload 1
ifnonnull 15
6: new java.lang.NullPointerException
dup
ldc "onNext called with null. Null values are generally not allowed in 2.x operators and sources."
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
astore 2
start local 2 7: aload 0
getfield io.reactivex.observers.SafeObserver.upstream:Lio/reactivex/disposables/Disposable;
invokeinterface io.reactivex.disposables.Disposable.dispose:()V
8: goto 13
StackMap locals: io.reactivex.observers.SafeObserver java.lang.Object java.lang.Throwable
StackMap stack: java.lang.Throwable
9: astore 3
start local 3 10: aload 3
invokestatic io.reactivex.exceptions.Exceptions.throwIfFatal:(Ljava/lang/Throwable;)V
11: aload 0
new io.reactivex.exceptions.CompositeException
dup
iconst_2
anewarray java.lang.Throwable
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 3
aastore
invokespecial io.reactivex.exceptions.CompositeException.<init>:([Ljava/lang/Throwable;)V
invokevirtual io.reactivex.observers.SafeObserver.onError:(Ljava/lang/Throwable;)V
12: return
end local 3 13: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual io.reactivex.observers.SafeObserver.onError:(Ljava/lang/Throwable;)V
14: return
end local 2 15: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.SafeObserver.downstream:Lio/reactivex/Observer;
aload 1
invokeinterface io.reactivex.Observer.onNext:(Ljava/lang/Object;)V
16: goto 26
StackMap locals:
StackMap stack: java.lang.Throwable
17: astore 2
start local 2 18: aload 2
invokestatic io.reactivex.exceptions.Exceptions.throwIfFatal:(Ljava/lang/Throwable;)V
19: aload 0
getfield io.reactivex.observers.SafeObserver.upstream:Lio/reactivex/disposables/Disposable;
invokeinterface io.reactivex.disposables.Disposable.dispose:()V
20: goto 25
StackMap locals: io.reactivex.observers.SafeObserver java.lang.Object java.lang.Throwable
StackMap stack: java.lang.Throwable
21: astore 3
start local 3 22: aload 3
invokestatic io.reactivex.exceptions.Exceptions.throwIfFatal:(Ljava/lang/Throwable;)V
23: aload 0
new io.reactivex.exceptions.CompositeException
dup
iconst_2
anewarray java.lang.Throwable
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 3
aastore
invokespecial io.reactivex.exceptions.CompositeException.<init>:([Ljava/lang/Throwable;)V
invokevirtual io.reactivex.observers.SafeObserver.onError:(Ljava/lang/Throwable;)V
24: return
end local 3 25: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual io.reactivex.observers.SafeObserver.onError:(Ljava/lang/Throwable;)V
end local 2 26: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lio/reactivex/observers/SafeObserver<TT;>;
0 27 1 t TT;
7 15 2 ex Ljava/lang/Throwable;
10 13 3 e1 Ljava/lang/Throwable;
18 26 2 e Ljava/lang/Throwable;
22 25 3 e1 Ljava/lang/Throwable;
Exception table:
from to target type
7 8 9 Class java.lang.Throwable
15 16 17 Class java.lang.Throwable
19 20 21 Class java.lang.Throwable
Signature: (TT;)V
RuntimeInvisibleParameterAnnotations:
0:
io.reactivex.annotations.NonNull()
MethodParameters:
Name Flags
t
void onNextNoSubscription();
descriptor: ()V
flags: (0x0000)
Code:
stack=6, locals=3, args_size=1
start local 0 0: aload 0
iconst_1
putfield io.reactivex.observers.SafeObserver.done:Z
1: new java.lang.NullPointerException
dup
ldc "Subscription not set!"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
astore 1
start local 1 2: aload 0
getfield io.reactivex.observers.SafeObserver.downstream:Lio/reactivex/Observer;
getstatic io.reactivex.internal.disposables.EmptyDisposable.INSTANCE:Lio/reactivex/internal/disposables/EmptyDisposable;
invokeinterface io.reactivex.Observer.onSubscribe:(Lio/reactivex/disposables/Disposable;)V
3: goto 8
StackMap locals: io.reactivex.observers.SafeObserver java.lang.Throwable
StackMap stack: java.lang.Throwable
4: astore 2
start local 2 5: aload 2
invokestatic io.reactivex.exceptions.Exceptions.throwIfFatal:(Ljava/lang/Throwable;)V
6: new io.reactivex.exceptions.CompositeException
dup
iconst_2
anewarray java.lang.Throwable
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
aastore
invokespecial io.reactivex.exceptions.CompositeException.<init>:([Ljava/lang/Throwable;)V
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
7: return
end local 2 8: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.SafeObserver.downstream:Lio/reactivex/Observer;
aload 1
invokeinterface io.reactivex.Observer.onError:(Ljava/lang/Throwable;)V
9: goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 2
start local 2 11: aload 2
invokestatic io.reactivex.exceptions.Exceptions.throwIfFatal:(Ljava/lang/Throwable;)V
12: new io.reactivex.exceptions.CompositeException
dup
iconst_2
anewarray java.lang.Throwable
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
aastore
invokespecial io.reactivex.exceptions.CompositeException.<init>:([Ljava/lang/Throwable;)V
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
end local 2 13: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lio/reactivex/observers/SafeObserver<TT;>;
2 14 1 ex Ljava/lang/Throwable;
5 8 2 e Ljava/lang/Throwable;
11 13 2 e Ljava/lang/Throwable;
Exception table:
from to target type
2 3 4 Class java.lang.Throwable
8 9 10 Class java.lang.Throwable
public void onError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.observers.SafeObserver.done:Z
ifeq 3
1: aload 1
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
2: return
3: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield io.reactivex.observers.SafeObserver.done:Z
4: aload 0
getfield io.reactivex.observers.SafeObserver.upstream:Lio/reactivex/disposables/Disposable;
ifnonnull 18
5: new java.lang.NullPointerException
dup
ldc "Subscription not set!"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
astore 2
start local 2 6: aload 0
getfield io.reactivex.observers.SafeObserver.downstream:Lio/reactivex/Observer;
getstatic io.reactivex.internal.disposables.EmptyDisposable.INSTANCE:Lio/reactivex/internal/disposables/EmptyDisposable;
invokeinterface io.reactivex.Observer.onSubscribe:(Lio/reactivex/disposables/Disposable;)V
7: goto 12
StackMap locals: io.reactivex.observers.SafeObserver java.lang.Throwable java.lang.Throwable
StackMap stack: java.lang.Throwable
8: astore 3
start local 3 9: aload 3
invokestatic io.reactivex.exceptions.Exceptions.throwIfFatal:(Ljava/lang/Throwable;)V
10: new io.reactivex.exceptions.CompositeException
dup
iconst_3
anewarray java.lang.Throwable
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
aastore
dup
iconst_2
aload 3
aastore
invokespecial io.reactivex.exceptions.CompositeException.<init>:([Ljava/lang/Throwable;)V
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
11: return
end local 3 12: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.SafeObserver.downstream:Lio/reactivex/Observer;
new io.reactivex.exceptions.CompositeException
dup
iconst_2
anewarray java.lang.Throwable
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
aastore
invokespecial io.reactivex.exceptions.CompositeException.<init>:([Ljava/lang/Throwable;)V
invokeinterface io.reactivex.Observer.onError:(Ljava/lang/Throwable;)V
13: goto 17
StackMap locals:
StackMap stack: java.lang.Throwable
14: astore 3
start local 3 15: aload 3
invokestatic io.reactivex.exceptions.Exceptions.throwIfFatal:(Ljava/lang/Throwable;)V
16: new io.reactivex.exceptions.CompositeException
dup
iconst_3
anewarray java.lang.Throwable
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
aastore
dup
iconst_2
aload 3
aastore
invokespecial io.reactivex.exceptions.CompositeException.<init>:([Ljava/lang/Throwable;)V
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
end local 3 17: StackMap locals:
StackMap stack:
return
end local 2 18: StackMap locals:
StackMap stack:
aload 1
ifnonnull 20
19: new java.lang.NullPointerException
dup
ldc "onError called with null. Null values are generally not allowed in 2.x operators and sources."
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
astore 1
20: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.SafeObserver.downstream:Lio/reactivex/Observer;
aload 1
invokeinterface io.reactivex.Observer.onError:(Ljava/lang/Throwable;)V
21: goto 25
StackMap locals:
StackMap stack: java.lang.Throwable
22: astore 2
start local 2 23: aload 2
invokestatic io.reactivex.exceptions.Exceptions.throwIfFatal:(Ljava/lang/Throwable;)V
24: new io.reactivex.exceptions.CompositeException
dup
iconst_2
anewarray java.lang.Throwable
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
aastore
invokespecial io.reactivex.exceptions.CompositeException.<init>:([Ljava/lang/Throwable;)V
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
end local 2 25: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lio/reactivex/observers/SafeObserver<TT;>;
0 26 1 t Ljava/lang/Throwable;
6 18 2 npe Ljava/lang/Throwable;
9 12 3 e Ljava/lang/Throwable;
15 17 3 e Ljava/lang/Throwable;
23 25 2 ex Ljava/lang/Throwable;
Exception table:
from to target type
6 7 8 Class java.lang.Throwable
12 13 14 Class java.lang.Throwable
20 21 22 Class java.lang.Throwable
RuntimeInvisibleParameterAnnotations:
0:
io.reactivex.annotations.NonNull()
MethodParameters:
Name Flags
t
public void onComplete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield io.reactivex.observers.SafeObserver.done:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield io.reactivex.observers.SafeObserver.done:Z
3: aload 0
getfield io.reactivex.observers.SafeObserver.upstream:Lio/reactivex/disposables/Disposable;
ifnonnull 6
4: aload 0
invokevirtual io.reactivex.observers.SafeObserver.onCompleteNoSubscription:()V
5: return
6: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.SafeObserver.downstream:Lio/reactivex/Observer;
invokeinterface io.reactivex.Observer.onComplete:()V
7: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 1
start local 1 9: aload 1
invokestatic io.reactivex.exceptions.Exceptions.throwIfFatal:(Ljava/lang/Throwable;)V
10: aload 1
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
end local 1 11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/reactivex/observers/SafeObserver<TT;>;
9 11 1 e Ljava/lang/Throwable;
Exception table:
from to target type
6 7 8 Class java.lang.Throwable
void onCompleteNoSubscription();
descriptor: ()V
flags: (0x0000)
Code:
stack=6, locals=3, args_size=1
start local 0 0: new java.lang.NullPointerException
dup
ldc "Subscription not set!"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
astore 1
start local 1 1: aload 0
getfield io.reactivex.observers.SafeObserver.downstream:Lio/reactivex/Observer;
getstatic io.reactivex.internal.disposables.EmptyDisposable.INSTANCE:Lio/reactivex/internal/disposables/EmptyDisposable;
invokeinterface io.reactivex.Observer.onSubscribe:(Lio/reactivex/disposables/Disposable;)V
2: goto 7
StackMap locals: io.reactivex.observers.SafeObserver java.lang.Throwable
StackMap stack: java.lang.Throwable
3: astore 2
start local 2 4: aload 2
invokestatic io.reactivex.exceptions.Exceptions.throwIfFatal:(Ljava/lang/Throwable;)V
5: new io.reactivex.exceptions.CompositeException
dup
iconst_2
anewarray java.lang.Throwable
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
aastore
invokespecial io.reactivex.exceptions.CompositeException.<init>:([Ljava/lang/Throwable;)V
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
6: return
end local 2 7: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.SafeObserver.downstream:Lio/reactivex/Observer;
aload 1
invokeinterface io.reactivex.Observer.onError:(Ljava/lang/Throwable;)V
8: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 2
start local 2 10: aload 2
invokestatic io.reactivex.exceptions.Exceptions.throwIfFatal:(Ljava/lang/Throwable;)V
11: new io.reactivex.exceptions.CompositeException
dup
iconst_2
anewarray java.lang.Throwable
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
aastore
invokespecial io.reactivex.exceptions.CompositeException.<init>:([Ljava/lang/Throwable;)V
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
end local 2 12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lio/reactivex/observers/SafeObserver<TT;>;
1 13 1 ex Ljava/lang/Throwable;
4 7 2 e Ljava/lang/Throwable;
10 12 2 e Ljava/lang/Throwable;
Exception table:
from to target type
1 2 3 Class java.lang.Throwable
7 8 9 Class java.lang.Throwable
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lio/reactivex/Observer<TT;>;Lio/reactivex/disposables/Disposable;
SourceFile: "SafeObserver.java"