Skip to content

Commit e218050

Browse files
Reorg fields
1 parent c2fd36e commit e218050

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rxjava-core/src/main/java/rx/operators/ScheduledObserver.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@
3232
private final Scheduler scheduler;
3333
private final CompositeSubscription parentSubscription;
3434
private final EventLoop eventLoop = new EventLoop();
35-
36-
private final ConcurrentLinkedQueue<Notification<? extends T>> queue = new ConcurrentLinkedQueue<Notification<? extends T>>();
35+
final AtomicInteger counter = new AtomicInteger();
3736
private final AtomicBoolean started = new AtomicBoolean();
3837

38+
private final ConcurrentLinkedQueue<Notification<? extends T>> queue = new ConcurrentLinkedQueue<Notification<? extends T>>();
39+
40+
3941
public ScheduledObserver(CompositeSubscription s, Observer<? super T> underlying, Scheduler scheduler) {
4042
this.parentSubscription = s;
4143
this.underlying = underlying;
@@ -57,8 +59,6 @@ public void onNext(final T args) {
5759
enqueue(new Notification<T>(args));
5860
}
5961

60-
final AtomicInteger counter = new AtomicInteger();
61-
6262
private void enqueue(Notification<? extends T> notification) {
6363
// this must happen before synchronization between threads
6464
queue.offer(notification);

0 commit comments

Comments
 (0)