lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [28/39] lucenenet git commit: Lucene.Net.Analysis.Util.AbstractAnalysisFactory refactor: ClassArg >GetClassArg() (makes conversion)
Date Sat, 04 Feb 2017 20:32:47 GMT
Lucene.Net.Analysis.Util.AbstractAnalysisFactory refactor: ClassArg >GetClassArg() (makes
conversion)


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

Branch: refs/heads/api-work
Commit: e3efbd0d463bd8b3dfb2a08de7bbd009b4db0c16
Parents: 01f01ab
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Feb 5 01:24:41 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sun Feb 5 01:24:41 2017 +0700

----------------------------------------------------------------------
 .../Analysis/Util/AbstractAnalysisFactory.cs         | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e3efbd0d/src/Lucene.Net.Analysis.Common/Analysis/Util/AbstractAnalysisFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Util/AbstractAnalysisFactory.cs b/src/Lucene.Net.Analysis.Common/Analysis/Util/AbstractAnalysisFactory.cs
index 1d6d304..cb010bb 100644
--- a/src/Lucene.Net.Analysis.Common/Analysis/Util/AbstractAnalysisFactory.cs
+++ b/src/Lucene.Net.Analysis.Common/Analysis/Util/AbstractAnalysisFactory.cs
@@ -390,20 +390,17 @@ namespace Lucene.Net.Analysis.Util
 
         /// <returns> the string used to specify the concrete class name in a serialized
representation: the class arg.  
         ///         If the concrete class name was not specified via a class arg, returns
<c>GetType().Name</c>. </returns>
-        public virtual string ClassArg // LUCENENET TODO: Change to GetClassArg()
+        public virtual string GetClassArg()
         {
-            get
+            if (null != originalArgs)
             {
-                if (null != originalArgs)
+                string className = originalArgs[CLASS_NAME];
+                if (null != className)
                 {
-                    string className = originalArgs[CLASS_NAME];
-                    if (null != className)
-                    {
-                        return className;
-                    }
+                    return className;
                 }
-                return this.GetType().Name;
             }
+            return this.GetType().Name;
         }
 
         public virtual bool IsExplicitLuceneMatchVersion { get; set; }


Mime
View raw message