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 2b8154d commit 861a318Copy full SHA for 861a318
google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/spi/v1/SubscriberImplTest.java
@@ -145,11 +145,8 @@ public void replyNextOutstandingMessage() {
145
146
public void replyAllOutstandingMessage() {
147
Preconditions.checkState(explicitAckReplies);
148
- for (; ; ) {
149
- SettableFuture<AckReply> reply = outstandingMessageReplies.poll();
150
- if (reply == null) {
151
- return;
152
- }
+ SettableFuture<AckReply> reply;
+ while ((reply = outstandingMessageReplies.poll()) != null) {
153
replyTo(reply);
154
}
155
0 commit comments