lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [35/58] lucenenet git commit: QueryParser.Flexible refactor: Changed PathQueryNode.PathElements to property
Date Tue, 06 Dec 2016 15:12:10 GMT
QueryParser.Flexible refactor: Changed PathQueryNode.PathElements to property


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

Branch: refs/heads/master
Commit: 1d4a68577823c13589aaa5a70eb1128886263aae
Parents: 4de4c9a
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Mon Dec 5 19:58:35 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Mon Dec 5 20:13:46 2016 +0700

----------------------------------------------------------------------
 .../Flexible/Core/Nodes/PathQueryNode.cs        | 22 +++++++-------------
 1 file changed, 7 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1d4a6857/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
index 0ca1f72..794fff5 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Nodes/PathQueryNode.cs
@@ -131,22 +131,14 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
             }
         }
 
-        /**
-         * Returns the a List with all QueryText elements
-         * 
-         * @return QueryText List size
-         */
-        public virtual IList<QueryText> GetPathElements()
-        {
-            return values;
-        }
-
-        /**
-         * Returns the a List with all QueryText elements
-         */
-        public virtual void SetPathElements(IList<QueryText> elements)
+        /// <summary>
+        /// Gets or Sets the a List with all QueryText elements
+        /// </summary>
+        /// <returns>QueryText List size</returns>
+        public virtual IList<QueryText> PathElements
         {
-            this.values = elements;
+            get { return values; }
+            set { this.values = value; }
         }
 
         /**


Mime
View raw message