LUCENE-4529: don't need to null first buffer ... it's done by Arrays.fill above

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1405433 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-11-03 22:21:22 +00:00
parent c870977ba2
commit 463a478a11
2 changed files with 0 additions and 2 deletions

View File

@ -181,7 +181,6 @@ public final class ByteBlockPool {
buffer = buffers[0];
} else {
bufferUpto = -1;
buffers[0] = null;
byteUpto = BYTE_BLOCK_SIZE;
byteOffset = -BYTE_BLOCK_SIZE;
buffer = null;

View File

@ -133,7 +133,6 @@ public final class IntBlockPool {
buffer = buffers[0];
} else {
bufferUpto = -1;
buffers[0] = null;
intUpto = INT_BLOCK_SIZE;
intOffset = -INT_BLOCK_SIZE;
buffer = null;