Skip to content

Commit 9d48815

Browse files
committed
fixes format
Signed-off-by: Oleh Dokuka <[email protected]>
1 parent 0de2ffc commit 9d48815

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

rsocket-core/src/main/java/io/rsocket/internal/UnboundedProcessor.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,34 +43,39 @@
4343
public final class UnboundedProcessor<T> extends FluxProcessor<T, T>
4444
implements Fuseable.QueueSubscription<T>, Fuseable {
4545

46-
4746
final Queue<T> queue;
4847
final Queue<T> priorityQueue;
4948

5049
volatile boolean done;
5150
Throwable error;
5251

53-
boolean hasDownstream; //important to not loose the downstream too early and miss discard hook, while having relevant hasDownstreams()
52+
boolean
53+
hasDownstream; // important to not loose the downstream too early and miss discard hook, while
54+
// having relevant hasDownstreams()
5455
volatile CoreSubscriber<? super T> actual;
5556

5657
volatile boolean cancelled;
5758

5859
volatile int once;
60+
5961
@SuppressWarnings("rawtypes")
6062
static final AtomicIntegerFieldUpdater<UnboundedProcessor> ONCE =
6163
AtomicIntegerFieldUpdater.newUpdater(UnboundedProcessor.class, "once");
6264

6365
volatile int wip;
66+
6467
@SuppressWarnings("rawtypes")
6568
static final AtomicIntegerFieldUpdater<UnboundedProcessor> WIP =
6669
AtomicIntegerFieldUpdater.newUpdater(UnboundedProcessor.class, "wip");
6770

6871
volatile int discardGuard;
72+
6973
@SuppressWarnings("rawtypes")
7074
static final AtomicIntegerFieldUpdater<UnboundedProcessor> DISCARD_GUARD =
71-
AtomicIntegerFieldUpdater.newUpdater(UnboundedProcessor.class, "discardGuard");
75+
AtomicIntegerFieldUpdater.newUpdater(UnboundedProcessor.class, "discardGuard");
7276

7377
volatile long requested;
78+
7479
@SuppressWarnings("rawtypes")
7580
static final AtomicLongFieldUpdater<UnboundedProcessor> REQUESTED =
7681
AtomicLongFieldUpdater.newUpdater(UnboundedProcessor.class, "requested");
@@ -379,7 +384,7 @@ public void clear() {
379384

380385
int missed = 1;
381386

382-
for (;;) {
387+
for (; ; ) {
383388
while (!queue.isEmpty()) {
384389
T t = queue.poll();
385390
if (t != null) {

0 commit comments

Comments
 (0)