Skip to content

Commit

Permalink
Fields could be final in test class
Browse files Browse the repository at this point in the history
  • Loading branch information
dfuch committed Jan 21, 2025
1 parent ff503a4 commit 9747d5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/jdk/java/net/httpclient/AggregateRequestBodyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -414,11 +414,11 @@ public void cancel() {
}

static class RequestSubscriber implements Flow.Subscriber<ByteBuffer> {
CompletableFuture<Subscription> subscriptionCF = new CompletableFuture<>();
ConcurrentLinkedDeque<ByteBuffer> items = new ConcurrentLinkedDeque<>();
CompletableFuture<List<ByteBuffer>> resultCF = new CompletableFuture<>();
final CompletableFuture<Subscription> subscriptionCF = new CompletableFuture<>();
final ConcurrentLinkedDeque<ByteBuffer> items = new ConcurrentLinkedDeque<>();
final CompletableFuture<List<ByteBuffer>> resultCF = new CompletableFuture<>();

Semaphore semaphore = new Semaphore(0);
final Semaphore semaphore = new Semaphore(0);

@Override
public void onSubscribe(Subscription subscription) {
Expand Down

0 comments on commit 9747d5e

Please sign in to comment.