Skip to content

Commit a1191a2

Browse files
committed
Remove volatile
1 parent bfb9cd1 commit a1191a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ public Subscription onSubscribe(final Observer<? super T> observer) {
4747
final SafeObservableSubscription subscription = new SafeObservableSubscription();
4848
subscription.wrap(source.subscribe(new Observer<T>() {
4949

50-
private volatile T value;
51-
private volatile boolean isEmpty = true;
52-
private volatile boolean hasTooManyElemenets;
50+
private T value;
51+
private boolean isEmpty = true;
52+
private boolean hasTooManyElemenets;
5353

5454
@Override
5555
public void onCompleted() {

0 commit comments

Comments
 (0)