We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8547735 commit ad86391Copy full SHA for ad86391
google-cloud-spanner/src/main/java/com/google/cloud/spanner/AsyncResultSetImpl.java
@@ -112,9 +112,9 @@ private enum State {
112
* Listeners that will be called when the {@link AsyncResultSetImpl} has finished fetching all
113
* rows and any underlying transaction or session can be closed.
114
*/
115
- private Collection<Runnable> listeners = new LinkedList<>();
+ private final Collection<Runnable> listeners = new LinkedList<>();
116
117
- private State state = State.INITIALIZED;
+ private volatile State state = State.INITIALIZED;
118
119
/** This variable indicates that produce rows thread is initiated */
120
private volatile boolean produceRowsInitiated;
0 commit comments