Skip to content

Commit

Permalink
fix checkstyle
Browse files Browse the repository at this point in the history
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
  • Loading branch information
lorban committed Mar 3, 2025
1 parent 354c317 commit 6610782
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import java.util.function.IntUnaryOperator;
import java.util.function.ToLongFunction;
import java.util.stream.Collectors;

import org.eclipse.jetty.io.internal.CompoundPool;
import org.eclipse.jetty.io.internal.QueuedPool;
import org.eclipse.jetty.util.BufferUtil;
Expand Down Expand Up @@ -256,7 +257,9 @@ public boolean removeAndRelease(RetainableByteBuffer buffer)
{
RetainableByteBuffer actual = buffer;
while (actual instanceof RetainableByteBuffer.Wrapper wrapper)
{
actual = wrapper.getWrapped();
}

if (actual instanceof ReservedBuffer reservedBuffer)
{
Expand Down Expand Up @@ -319,7 +322,7 @@ private void release(RetainedBucket bucket, Pool.Entry<RetainableByteBuffer> ent
if (entry.release())
{
if (used % 100 == 0)
checkMaxMemory(bucket, buffer.isDirect());
checkMaxMemory(bucket, buffer.isDirect());
return;
}

Expand Down Expand Up @@ -448,7 +451,9 @@ private long getMemory(boolean direct, ToLongFunction<RetainedBucket> count)
{
long size = 0;
for (RetainedBucket bucket : direct ? _direct : _indirect)
{
size += count.applyAsLong(bucket) * bucket.getCapacity();
}
return size;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import java.util.Collections;
import java.util.List;
import java.util.Map;

import org.eclipse.jetty.io.internal.CompoundPool;
import org.eclipse.jetty.util.ConcurrentPool;
import org.eclipse.jetty.util.Pool;
Expand Down

0 comments on commit 6610782

Please sign in to comment.