Lucene.Net.Core.Util.ByteBlockPool.Allocator: Changed parameter type of RecycleByteBlocks from List<T> to IList<T>
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/cd7fef2a Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/cd7fef2a Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/cd7fef2a Branch: refs/heads/api-work Commit: cd7fef2acc17e7a97dff67f318c76e33b2c647b8 Parents: 3090f3a Author: Shad Storhaug <[email protected]> Authored: Tue Jan 31 14:42:31 2017 +0700 Committer: Shad Storhaug <[email protected]> Committed: Tue Jan 31 14:42:31 2017 +0700 ---------------------------------------------------------------------- src/Lucene.Net.Core/Util/ByteBlockPool.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/cd7fef2a/src/Lucene.Net.Core/Util/ByteBlockPool.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Core/Util/ByteBlockPool.cs b/src/Lucene.Net.Core/Util/ByteBlockPool.cs index 28bf8eb..d51f9e8 100644 --- a/src/Lucene.Net.Core/Util/ByteBlockPool.cs +++ b/src/Lucene.Net.Core/Util/ByteBlockPool.cs @@ -1,7 +1,8 @@ +using Lucene.Net.Support; using System; using System.Collections.Generic; using System.Diagnostics; -using Lucene.Net.Support; +using System.Linq; namespace Lucene.Net.Util { @@ -63,7 +64,7 @@ namespace Lucene.Net.Util public abstract void RecycleByteBlocks(byte[][] blocks, int start, int end); - public virtual void RecycleByteBlocks(List<byte[]> blocks) + public virtual void RecycleByteBlocks(IList<byte[]> blocks) { var b = blocks.ToArray(); RecycleByteBlocks(b, 0, b.Length);
