Skip to content

Commit 272edca

Browse files
committed
Fix checkstyle error
1 parent d789aef commit 272edca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/storage/MultipartInputStream.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,12 +262,12 @@ public void readVectored(List<? extends FileRange> ranges,
262262

263263
final CompletableFuture<ByteBuffer> finalResult = result;
264264
final long offset = range.getOffset();
265-
final int length = range.getLength();
265+
final int rangeLength = range.getLength();
266266

267267
// Submit async read task for this range
268268
CompletableFuture.runAsync(() -> {
269269
try {
270-
ByteBuffer buffer = allocate.apply(length);
270+
ByteBuffer buffer = allocate.apply(rangeLength);
271271
readRangeData(offset, buffer);
272272
buffer.flip();
273273
finalResult.complete(buffer);
@@ -305,7 +305,6 @@ private void readRangeData(long offset, ByteBuffer buffer) throws IOException {
305305
}
306306
}
307307

308-
309308
@Override
310309
public synchronized void close() throws IOException {
311310
closed = true;

0 commit comments

Comments
 (0)