public class io.reactivex.observers.TestObserver<T> extends io.reactivex.observers.BaseTestConsumer<T, io.reactivex.observers.TestObserver<T>> implements io.reactivex.Observer<T>, io.reactivex.disposables.Disposable, io.reactivex.MaybeObserver<T>, io.reactivex.SingleObserver<T>, io.reactivex.CompletableObserver
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.reactivex.observers.TestObserver
super_class: io.reactivex.observers.BaseTestConsumer
{
private final io.reactivex.Observer<? super T> downstream;
descriptor: Lio/reactivex/Observer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lio/reactivex/Observer<-TT;>;
private final java.util.concurrent.atomic.AtomicReference<io.reactivex.disposables.Disposable> upstream;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<Lio/reactivex/disposables/Disposable;>;
private io.reactivex.internal.fuseable.QueueDisposable<T> qd;
descriptor: Lio/reactivex/internal/fuseable/QueueDisposable;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/reactivex/internal/fuseable/QueueDisposable<TT;>;
public static <T> io.reactivex.observers.TestObserver<T> create();
descriptor: ()Lio/reactivex/observers/TestObserver;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new io.reactivex.observers.TestObserver
dup
invokespecial io.reactivex.observers.TestObserver.<init>:()V
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <T:Ljava/lang/Object;>()Lio/reactivex/observers/TestObserver<TT;>;
public static <T> io.reactivex.observers.TestObserver<T> create(io.reactivex.Observer<? super T>);
descriptor: (Lio/reactivex/Observer;)Lio/reactivex/observers/TestObserver;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new io.reactivex.observers.TestObserver
dup
aload 0
invokespecial io.reactivex.observers.TestObserver.<init>:(Lio/reactivex/Observer;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 delegate Lio/reactivex/Observer<-TT;>;
Signature: <T:Ljava/lang/Object;>(Lio/reactivex/Observer<-TT;>;)Lio/reactivex/observers/TestObserver<TT;>;
MethodParameters:
Name Flags
delegate
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic io.reactivex.observers.TestObserver$EmptyObserver.INSTANCE:Lio/reactivex/observers/TestObserver$EmptyObserver;
invokespecial io.reactivex.observers.TestObserver.<init>:(Lio/reactivex/Observer;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/observers/TestObserver<TT;>;
public void <init>(io.reactivex.Observer<? super T>);
descriptor: (Lio/reactivex/Observer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial io.reactivex.observers.BaseTestConsumer.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
putfield io.reactivex.observers.TestObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
2: aload 0
aload 1
putfield io.reactivex.observers.TestObserver.downstream:Lio/reactivex/Observer;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/reactivex/observers/TestObserver<TT;>;
0 4 1 downstream Lio/reactivex/Observer<-TT;>;
Signature: (Lio/reactivex/Observer<-TT;>;)V
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
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
putfield io.reactivex.observers.TestObserver.lastThread:Ljava/lang/Thread;
1: aload 1
ifnonnull 4
2: aload 0
getfield io.reactivex.observers.TestObserver.errors:Ljava/util/List;
new java.lang.NullPointerException
dup
ldc "onSubscribe received a null Subscription"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: return
4: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.TestObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
aload 1
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifne 9
5: aload 1
invokeinterface io.reactivex.disposables.Disposable.dispose:()V
6: aload 0
getfield io.reactivex.observers.TestObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
getstatic io.reactivex.internal.disposables.DisposableHelper.DISPOSED:Lio/reactivex/internal/disposables/DisposableHelper;
if_acmpeq 8
7: aload 0
getfield io.reactivex.observers.TestObserver.errors:Ljava/util/List;
new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "onSubscribe received multiple subscriptions: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
8: StackMap locals:
StackMap stack:
return
9: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.TestObserver.initialFusionMode:I
ifeq 27
10: aload 1
instanceof io.reactivex.internal.fuseable.QueueDisposable
ifeq 27
11: aload 0
aload 1
checkcast io.reactivex.internal.fuseable.QueueDisposable
putfield io.reactivex.observers.TestObserver.qd:Lio/reactivex/internal/fuseable/QueueDisposable;
12: aload 0
getfield io.reactivex.observers.TestObserver.qd:Lio/reactivex/internal/fuseable/QueueDisposable;
aload 0
getfield io.reactivex.observers.TestObserver.initialFusionMode:I
invokeinterface io.reactivex.internal.fuseable.QueueDisposable.requestFusion:(I)I
istore 2
start local 2 13: aload 0
iload 2
putfield io.reactivex.observers.TestObserver.establishedFusionMode:I
14: iload 2
iconst_1
if_icmpne 27
15: aload 0
iconst_1
putfield io.reactivex.observers.TestObserver.checkSubscriptionOnce:Z
16: aload 0
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
putfield io.reactivex.observers.TestObserver.lastThread:Ljava/lang/Thread;
17: goto 19
start local 3 18: StackMap locals: int java.lang.Object
StackMap stack:
aload 0
getfield io.reactivex.observers.TestObserver.values:Ljava/util/List;
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 19: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.TestObserver.qd:Lio/reactivex/internal/fuseable/QueueDisposable;
invokeinterface io.reactivex.internal.fuseable.QueueDisposable.poll:()Ljava/lang/Object;
dup
astore 3
start local 3 20: ifnonnull 18
21: aload 0
dup
getfield io.reactivex.observers.TestObserver.completions:J
lconst_1
ladd
putfield io.reactivex.observers.TestObserver.completions:J
22: aload 0
getfield io.reactivex.observers.TestObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
getstatic io.reactivex.internal.disposables.DisposableHelper.DISPOSED:Lio/reactivex/internal/disposables/DisposableHelper;
invokevirtual java.util.concurrent.atomic.AtomicReference.lazySet:(Ljava/lang/Object;)V
end local 3 23: goto 26
StackMap locals:
StackMap stack: java.lang.Throwable
24: astore 3
start local 3 25: aload 0
getfield io.reactivex.observers.TestObserver.errors:Ljava/util/List;
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 26: StackMap locals:
StackMap stack:
return
end local 2 27: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.TestObserver.downstream:Lio/reactivex/Observer;
aload 1
invokeinterface io.reactivex.Observer.onSubscribe:(Lio/reactivex/disposables/Disposable;)V
28: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lio/reactivex/observers/TestObserver<TT;>;
0 29 1 d Lio/reactivex/disposables/Disposable;
13 27 2 m I
18 19 3 t TT;
20 23 3 t TT;
25 26 3 ex Ljava/lang/Throwable;
Exception table:
from to target type
17 23 24 Class java.lang.Throwable
MethodParameters:
Name Flags
d
public void onNext();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.observers.TestObserver.checkSubscriptionOnce:Z
ifne 4
1: aload 0
iconst_1
putfield io.reactivex.observers.TestObserver.checkSubscriptionOnce:Z
2: aload 0
getfield io.reactivex.observers.TestObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
ifnonnull 4
3: aload 0
getfield io.reactivex.observers.TestObserver.errors:Ljava/util/List;
new java.lang.IllegalStateException
dup
ldc "onSubscribe not called in proper order"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: StackMap locals:
StackMap stack:
aload 0
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
putfield io.reactivex.observers.TestObserver.lastThread:Ljava/lang/Thread;
5: aload 0
getfield io.reactivex.observers.TestObserver.establishedFusionMode:I
iconst_2
if_icmpne 14
6: goto 8
7: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.TestObserver.values:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
8: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.TestObserver.qd:Lio/reactivex/internal/fuseable/QueueDisposable;
invokeinterface io.reactivex.internal.fuseable.QueueDisposable.poll:()Ljava/lang/Object;
dup
astore 1
ifnonnull 7
9: goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 2
start local 2 11: aload 0
getfield io.reactivex.observers.TestObserver.errors:Ljava/util/List;
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
12: aload 0
getfield io.reactivex.observers.TestObserver.qd:Lio/reactivex/internal/fuseable/QueueDisposable;
invokeinterface io.reactivex.internal.fuseable.QueueDisposable.dispose:()V
end local 2 13: StackMap locals:
StackMap stack:
return
14: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.TestObserver.values:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
15: aload 1
ifnonnull 17
16: aload 0
getfield io.reactivex.observers.TestObserver.errors:Ljava/util/List;
new java.lang.NullPointerException
dup
ldc "onNext received a null value"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
17: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.TestObserver.downstream:Lio/reactivex/Observer;
aload 1
invokeinterface io.reactivex.Observer.onNext:(Ljava/lang/Object;)V
18: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lio/reactivex/observers/TestObserver<TT;>;
0 19 1 t TT;
11 13 2 ex Ljava/lang/Throwable;
Exception table:
from to target type
6 9 10 Class java.lang.Throwable
Signature: (TT;)V
MethodParameters:
Name Flags
t
public void onError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.observers.TestObserver.checkSubscriptionOnce:Z
ifne 4
1: aload 0
iconst_1
putfield io.reactivex.observers.TestObserver.checkSubscriptionOnce:Z
2: aload 0
getfield io.reactivex.observers.TestObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
ifnonnull 4
3: aload 0
getfield io.reactivex.observers.TestObserver.errors:Ljava/util/List;
new java.lang.IllegalStateException
dup
ldc "onSubscribe not called in proper order"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: StackMap locals:
StackMap stack:
aload 0
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
putfield io.reactivex.observers.TestObserver.lastThread:Ljava/lang/Thread;
5: aload 1
ifnonnull 8
6: aload 0
getfield io.reactivex.observers.TestObserver.errors:Ljava/util/List;
new java.lang.NullPointerException
dup
ldc "onError received a null Throwable"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
7: goto 9
8: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.TestObserver.errors:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
9: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.TestObserver.downstream:Lio/reactivex/Observer;
aload 1
invokeinterface io.reactivex.Observer.onError:(Ljava/lang/Throwable;)V
10: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
11: astore 2
12: aload 0
getfield io.reactivex.observers.TestObserver.done:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
13: aload 2
athrow
14: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.TestObserver.done:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
15: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lio/reactivex/observers/TestObserver<TT;>;
0 16 1 t Ljava/lang/Throwable;
Exception table:
from to target type
4 11 11 any
MethodParameters:
Name Flags
t
public void onComplete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield io.reactivex.observers.TestObserver.checkSubscriptionOnce:Z
ifne 4
1: aload 0
iconst_1
putfield io.reactivex.observers.TestObserver.checkSubscriptionOnce:Z
2: aload 0
getfield io.reactivex.observers.TestObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
ifnonnull 4
3: aload 0
getfield io.reactivex.observers.TestObserver.errors:Ljava/util/List;
new java.lang.IllegalStateException
dup
ldc "onSubscribe not called in proper order"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: StackMap locals:
StackMap stack:
aload 0
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
putfield io.reactivex.observers.TestObserver.lastThread:Ljava/lang/Thread;
5: aload 0
dup
getfield io.reactivex.observers.TestObserver.completions:J
lconst_1
ladd
putfield io.reactivex.observers.TestObserver.completions:J
6: aload 0
getfield io.reactivex.observers.TestObserver.downstream:Lio/reactivex/Observer;
invokeinterface io.reactivex.Observer.onComplete:()V
7: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 1
9: aload 0
getfield io.reactivex.observers.TestObserver.done:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
10: aload 1
athrow
11: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.TestObserver.done:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
12: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lio/reactivex/observers/TestObserver<TT;>;
Exception table:
from to target type
4 8 8 any
public final boolean isCancelled();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.reactivex.observers.TestObserver.isDisposed:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/reactivex/observers/TestObserver<TT;>;
public final void cancel();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.reactivex.observers.TestObserver.dispose:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/observers/TestObserver<TT;>;
public final void dispose();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.observers.TestObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokestatic io.reactivex.internal.disposables.DisposableHelper.dispose:(Ljava/util/concurrent/atomic/AtomicReference;)Z
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/observers/TestObserver<TT;>;
public final boolean isDisposed();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.observers.TestObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast io.reactivex.disposables.Disposable
invokestatic io.reactivex.internal.disposables.DisposableHelper.isDisposed:(Lio/reactivex/disposables/Disposable;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/reactivex/observers/TestObserver<TT;>;
public final boolean hasSubscription();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.observers.TestObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/observers/TestObserver<TT;>;
public final io.reactivex.observers.TestObserver<T> assertSubscribed();
descriptor: ()Lio/reactivex/observers/TestObserver;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.observers.TestObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
ifnonnull 2
1: aload 0
ldc "Not subscribed!"
invokevirtual io.reactivex.observers.TestObserver.fail:(Ljava/lang/String;)Ljava/lang/AssertionError;
athrow
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/observers/TestObserver<TT;>;
Signature: ()Lio/reactivex/observers/TestObserver<TT;>;
public final io.reactivex.observers.TestObserver<T> assertNotSubscribed();
descriptor: ()Lio/reactivex/observers/TestObserver;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.observers.TestObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
ifnull 2
1: aload 0
ldc "Subscribed!"
invokevirtual io.reactivex.observers.TestObserver.fail:(Ljava/lang/String;)Ljava/lang/AssertionError;
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.observers.TestObserver.errors:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 4
3: aload 0
ldc "Not subscribed but errors found"
invokevirtual io.reactivex.observers.TestObserver.fail:(Ljava/lang/String;)Ljava/lang/AssertionError;
athrow
4: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/reactivex/observers/TestObserver<TT;>;
Signature: ()Lio/reactivex/observers/TestObserver<TT;>;
public final io.reactivex.observers.TestObserver<T> assertOf(io.reactivex.functions.Consumer<? super io.reactivex.observers.TestObserver<T>>);
descriptor: (Lio/reactivex/functions/Consumer;)Lio/reactivex/observers/TestObserver;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokeinterface io.reactivex.functions.Consumer.accept:(Ljava/lang/Object;)V
1: goto 4
StackMap locals:
StackMap stack: java.lang.Throwable
2: astore 2
start local 2 3: aload 2
invokestatic io.reactivex.internal.util.ExceptionHelper.wrapOrThrow:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
athrow
end local 2 4: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/reactivex/observers/TestObserver<TT;>;
0 5 1 check Lio/reactivex/functions/Consumer<-Lio/reactivex/observers/TestObserver<TT;>;>;
3 4 2 ex Ljava/lang/Throwable;
Exception table:
from to target type
0 1 2 Class java.lang.Throwable
Signature: (Lio/reactivex/functions/Consumer<-Lio/reactivex/observers/TestObserver<TT;>;>;)Lio/reactivex/observers/TestObserver<TT;>;
MethodParameters:
Name Flags
check
final io.reactivex.observers.TestObserver<T> setInitialFusionMode(int);
descriptor: (I)Lio/reactivex/observers/TestObserver;
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield io.reactivex.observers.TestObserver.initialFusionMode:I
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/observers/TestObserver<TT;>;
0 2 1 mode I
Signature: (I)Lio/reactivex/observers/TestObserver<TT;>;
MethodParameters:
Name Flags
mode
final io.reactivex.observers.TestObserver<T> assertFusionMode(int);
descriptor: (I)Lio/reactivex/observers/TestObserver;
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.observers.TestObserver.establishedFusionMode:I
istore 2
start local 2 1: iload 2
iload 1
if_icmpeq 7
2: aload 0
getfield io.reactivex.observers.TestObserver.qd:Lio/reactivex/internal/fuseable/QueueDisposable;
ifnull 6
3: new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "Fusion mode different. Expected: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokestatic io.reactivex.observers.TestObserver.fusionModeToString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: ldc ", actual: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokestatic io.reactivex.observers.TestObserver.fusionModeToString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
6: StackMap locals: int
StackMap stack:
aload 0
ldc "Upstream is not fuseable"
invokevirtual io.reactivex.observers.TestObserver.fail:(Ljava/lang/String;)Ljava/lang/AssertionError;
athrow
7: StackMap locals:
StackMap stack:
aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/reactivex/observers/TestObserver<TT;>;
0 8 1 mode I
1 8 2 m I
Signature: (I)Lio/reactivex/observers/TestObserver<TT;>;
MethodParameters:
Name Flags
mode
static java.lang.String fusionModeToString(int);
descriptor: (I)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: iload 0
tableswitch { // 0 - 2
0: 1
1: 2
2: 3
default: 4
}
1: StackMap locals:
StackMap stack:
ldc "NONE"
areturn
2: StackMap locals:
StackMap stack:
ldc "SYNC"
areturn
3: StackMap locals:
StackMap stack:
ldc "ASYNC"
areturn
4: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "Unknown("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 0
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 mode I
MethodParameters:
Name Flags
mode
final io.reactivex.observers.TestObserver<T> assertFuseable();
descriptor: ()Lio/reactivex/observers/TestObserver;
flags: (0x0010) ACC_FINAL
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.observers.TestObserver.qd:Lio/reactivex/internal/fuseable/QueueDisposable;
ifnonnull 2
1: new java.lang.AssertionError
dup
ldc "Upstream is not fuseable."
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/observers/TestObserver<TT;>;
Signature: ()Lio/reactivex/observers/TestObserver<TT;>;
final io.reactivex.observers.TestObserver<T> assertNotFuseable();
descriptor: ()Lio/reactivex/observers/TestObserver;
flags: (0x0010) ACC_FINAL
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.observers.TestObserver.qd:Lio/reactivex/internal/fuseable/QueueDisposable;
ifnull 2
1: new java.lang.AssertionError
dup
ldc "Upstream is fuseable."
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/observers/TestObserver<TT;>;
Signature: ()Lio/reactivex/observers/TestObserver<TT;>;
public void onSuccess();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual io.reactivex.observers.TestObserver.onNext:(Ljava/lang/Object;)V
1: aload 0
invokevirtual io.reactivex.observers.TestObserver.onComplete:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/observers/TestObserver<TT;>;
0 3 1 value TT;
Signature: (TT;)V
MethodParameters:
Name Flags
value
public io.reactivex.observers.BaseTestConsumer assertNotSubscribed();
descriptor: ()Lio/reactivex/observers/BaseTestConsumer;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual io.reactivex.observers.TestObserver.assertNotSubscribed:()Lio/reactivex/observers/TestObserver;
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.reactivex.observers.BaseTestConsumer assertSubscribed();
descriptor: ()Lio/reactivex/observers/BaseTestConsumer;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual io.reactivex.observers.TestObserver.assertSubscribed:()Lio/reactivex/observers/TestObserver;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <T:Ljava/lang/Object;>Lio/reactivex/observers/BaseTestConsumer<TT;Lio/reactivex/observers/TestObserver<TT;>;>;Lio/reactivex/Observer<TT;>;Lio/reactivex/disposables/Disposable;Lio/reactivex/MaybeObserver<TT;>;Lio/reactivex/SingleObserver<TT;>;Lio/reactivex/CompletableObserver;
SourceFile: "TestObserver.java"
NestMembers:
io.reactivex.observers.TestObserver$EmptyObserver
InnerClasses:
final EmptyObserver = io.reactivex.observers.TestObserver$EmptyObserver of io.reactivex.observers.TestObserver