Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dfuch committed Jan 21, 2025
1 parent fb5c155 commit ff503a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/jdk/java/net/httpclient/AggregateRequestBodyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ public void onSubscribe(Subscription subscription) {
public void onNext(ByteBuffer item) {
items.addLast(item);
int available = semaphore.availablePermits();
if (semaphore.availablePermits() > Integer.MAX_VALUE - 8) {
if (available > Integer.MAX_VALUE - 8) {
onError(new IllegalStateException("too many buffers in queue: " + available));
}
semaphore.release();
Expand Down

0 comments on commit ff503a4

Please sign in to comment.