Skip to content

Commit 65de5a6

Browse files
committed
#12681 handle review comments
Signed-off-by: Ludovic Orban <[email protected]>
1 parent dadce0c commit 65de5a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/content/CachingHttpContentFactory.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public void writeTo(Content.Sink sink, long offset, long length, Callback callba
368368
boolean retained = false;
369369
try
370370
{
371-
retained = retain();
371+
retained = cachedRetain();
372372
if (retained)
373373
sink.write(true, BufferUtil.slice(_buffer.getByteBuffer(), Math.toIntExact(offset), Math.toIntExact(length)), Callback.from(this::release, callback));
374374
else
@@ -389,7 +389,7 @@ public void writeTo(Content.Sink sink, long offset, long length, Callback callba
389389
* its internal buffer if it is.
390390
* @return true if this content can be used and has been retained, false otherwise.
391391
*/
392-
private boolean retain()
392+
private boolean cachedRetain()
393393
{
394394
return _cache.computeIfPresent(_cacheKey, (s, cachingHttpContent) ->
395395
{

0 commit comments

Comments
 (0)