lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [10/50] [abbrv] lucenenet git commit: Lucene.Net.Core.Util.SPIClassIterator: Optimized out the Codecs because our abstract factories now take care of these, so we don't need to have types with a default constructor anymore
Date Wed, 15 Mar 2017 23:49:52 GMT
Lucene.Net.Core.Util.SPIClassIterator: Optimized out the Codecs because our abstract factories
now take care of these, so we don't need to have types with a default constructor anymore


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

Branch: refs/heads/api-work
Commit: 21372d52f1dbfedf1bc08b410887016c0fd24310
Parents: 133f8fc
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Tue Mar 14 15:42:01 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Tue Mar 14 22:04:23 2017 +0700

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


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/21372d52/src/Lucene.Net.Core/Util/SPIClassIterator.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Util/SPIClassIterator.cs b/src/Lucene.Net.Core/Util/SPIClassIterator.cs
index eac6c43..a2a3f02 100644
--- a/src/Lucene.Net.Core/Util/SPIClassIterator.cs
+++ b/src/Lucene.Net.Core/Util/SPIClassIterator.cs
@@ -110,7 +110,7 @@ namespace Lucene.Net.Util
                                 switch (parameters.Length)
                                 {
                                     case 0: // default ctor
-                                        return true;
+                                        return false; // LUCENENET NOTE: Now that we have
factored Codecs into Abstract Factories, we don't need default constructors here
                                     case 1:
                                         return typeof(IDictionary<string, string>).IsAssignableFrom(parameters[0].ParameterType);
                                     default:


Mime
View raw message