lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [19/50] [abbrv] lucenenet git commit: Removed unnecessary byte[] cast from Core.Store.SimpleFSDirectory.ReadInternal()
Date Sun, 23 Oct 2016 13:02:05 GMT
Removed unnecessary byte[] cast from Core.Store.SimpleFSDirectory.ReadInternal()


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/35bc4999
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/35bc4999
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/35bc4999

Branch: refs/heads/master
Commit: 35bc49991869dc0f6ca8e726414e078c91da456d
Parents: 78614ee
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Mon Oct 17 21:54:18 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Oct 20 18:20:56 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Store/SimpleFSDirectory.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/35bc4999/src/Lucene.Net.Core/Store/SimpleFSDirectory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Store/SimpleFSDirectory.cs b/src/Lucene.Net.Core/Store/SimpleFSDirectory.cs
index e18a3bd..ff8015a 100644
--- a/src/Lucene.Net.Core/Store/SimpleFSDirectory.cs
+++ b/src/Lucene.Net.Core/Store/SimpleFSDirectory.cs
@@ -197,7 +197,7 @@ namespace Lucene.Net.Store
                         while (total < len)
                         {
                             int toRead = Math.Min(CHUNK_SIZE, len - total);
-                            int i = File.Read((byte[])(Array)b, offset + total, toRead);
+                            int i = File.Read(b, offset + total, toRead);
                             if (i < 0) // be defensive here, even though we checked before
hand, something could have changed
                             {
                                 throw new EndOfStreamException("read past EOF: " + this +
" off: " + offset + " len: " + len + " total: " + total + " chunkLen: " + toRead + " end:
" + End);


Mime
View raw message