File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
spring-web/src/main/java/org/springframework/http/server/reactive Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -52,17 +52,17 @@ public abstract class AbstractListenerReadPublisher<T> implements Publisher<T> {
52
52
53
53
private volatile long demand ;
54
54
55
- private volatile boolean completionBeforeDemand ;
56
-
57
- @ Nullable
58
- private volatile Throwable errorBeforeDemand ;
59
-
60
55
@ SuppressWarnings ("rawtypes" )
61
56
private static final AtomicLongFieldUpdater <AbstractListenerReadPublisher > DEMAND_FIELD_UPDATER =
62
57
AtomicLongFieldUpdater .newUpdater (AbstractListenerReadPublisher .class , "demand" );
63
58
64
59
@ Nullable
65
- private Subscriber <? super T > subscriber ;
60
+ private volatile Subscriber <? super T > subscriber ;
61
+
62
+ private volatile boolean completionBeforeDemand ;
63
+
64
+ @ Nullable
65
+ private volatile Throwable errorBeforeDemand ;
66
66
67
67
68
68
// Publisher implementation...
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class WriteResultPublisher implements Publisher<Void> {
43
43
private final AtomicReference <State > state = new AtomicReference <>(State .UNSUBSCRIBED );
44
44
45
45
@ Nullable
46
- private Subscriber <? super Void > subscriber ;
46
+ private volatile Subscriber <? super Void > subscriber ;
47
47
48
48
private volatile boolean completedBeforeSubscribed ;
49
49
You can’t perform that action at this time.
0 commit comments