lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [19/20] lucenenet git commit: Lucene.Net.Core (Search.ReferenceManager + Store.CompoundFileWriter): Changed NullReferenceException to ArgumentNullException
Date Sun, 02 Apr 2017 07:06:19 GMT
Lucene.Net.Core (Search.ReferenceManager + Store.CompoundFileWriter): Changed NullReferenceException
to ArgumentNullException


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

Branch: refs/heads/api-work
Commit: f57f938e0f3b9ac53b4aedb2e30d2e6acd5dd461
Parents: 02b78dd
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Apr 2 12:17:23 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sun Apr 2 12:17:23 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Search/ReferenceManager.cs  | 4 ++--
 src/Lucene.Net.Core/Store/CompoundFileWriter.cs | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/f57f938e/src/Lucene.Net.Core/Search/ReferenceManager.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Search/ReferenceManager.cs b/src/Lucene.Net.Core/Search/ReferenceManager.cs
index bfe81de..a4d7df8 100644
--- a/src/Lucene.Net.Core/Search/ReferenceManager.cs
+++ b/src/Lucene.Net.Core/Search/ReferenceManager.cs
@@ -339,7 +339,7 @@ namespace Lucene.Net.Search
         {
             if (listener == null)
             {
-                throw new System.NullReferenceException("Listener cannot be null"); // LUCENENET
TODO: ArgumentNullException ?
+                throw new System.ArgumentNullException("Listener cannot be null");
             }
             refreshListeners.Add(listener);
         }
@@ -351,7 +351,7 @@ namespace Lucene.Net.Search
         {
             if (listener == null)
             {
-                throw new System.NullReferenceException("Listener cannot be null"); // LUCENENET
TODO: ArgumentNullException ?
+                throw new System.ArgumentNullException("Listener cannot be null");
             }
             refreshListeners.Remove(listener);
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/f57f938e/src/Lucene.Net.Core/Store/CompoundFileWriter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Store/CompoundFileWriter.cs b/src/Lucene.Net.Core/Store/CompoundFileWriter.cs
index c4a6827..f58f7f2 100644
--- a/src/Lucene.Net.Core/Store/CompoundFileWriter.cs
+++ b/src/Lucene.Net.Core/Store/CompoundFileWriter.cs
@@ -96,11 +96,11 @@ namespace Lucene.Net.Store
         {
             if (dir == null)
             {
-                throw new NullReferenceException("directory cannot be null"); // LUCENENET
TODO: ArgumentNullException?
+                throw new ArgumentNullException("directory cannot be null"); 
             }
             if (name == null)
             {
-                throw new NullReferenceException("name cannot be null"); // LUCENENET TODO:
ArgumentNullException?
+                throw new ArgumentNullException("name cannot be null"); 
             }
             directory = dir;
             entryTableName = IndexFileNames.SegmentFileName(IndexFileNames.StripExtension(name),
"", IndexFileNames.COMPOUND_FILE_ENTRIES_EXTENSION);


Mime
View raw message