Skip to content

Commit 7f3bd26

Browse files
committed
Rename dest to buffer
1 parent 66a715c commit 7f3bd26

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

jetty-core/jetty-io/src/main/java/org/eclipse/jetty/io/MemoryEndPointPipe.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ else if (filled < 0)
173173
return filled;
174174
}
175175

176-
private int fillInto(ByteBuffer dest)
176+
private int fillInto(ByteBuffer buffer)
177177
{
178178
int filled = 0;
179-
int pos = BufferUtil.flipToFill(dest);
179+
int pos = BufferUtil.flipToFill(buffer);
180180
try
181181
{
182182
try (AutoLock ignored = lock.lock())
@@ -189,7 +189,7 @@ private int fillInto(ByteBuffer dest)
189189
if (data == EOF)
190190
return filled > 0 ? filled : -1;
191191

192-
int space = dest.remaining();
192+
int space = buffer.remaining();
193193
if (space == 0)
194194
return filled;
195195

@@ -199,15 +199,15 @@ private int fillInto(ByteBuffer dest)
199199
if (toCopy == available)
200200
{
201201
// Copy all and consume
202-
data.putTo(dest);
202+
data.putTo(buffer);
203203
data.release();
204204
byteBuffers.poll();
205205
}
206206
else
207207
{
208208
// Partial copy using slice
209209
RetainableByteBuffer slice = data.slice(toCopy);
210-
slice.putTo(dest);
210+
slice.putTo(buffer);
211211
slice.release();
212212
data.skip(toCopy);
213213
}
@@ -219,7 +219,7 @@ private int fillInto(ByteBuffer dest)
219219
}
220220
finally
221221
{
222-
BufferUtil.flipToFlush(dest, pos);
222+
BufferUtil.flipToFlush(buffer, pos);
223223
}
224224
}
225225

@@ -291,7 +291,7 @@ public boolean flush(ByteBuffer... buffers) throws IOException
291291
result = false;
292292
break;
293293
}
294-
this.byteBuffers.offer(copy);
294+
byteBuffers.offer(copy);
295295
int length = (int)copy.size();
296296
capacity += length;
297297
flushed += length;

0 commit comments

Comments
 (0)