lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [45/50] [abbrv] lucenenet git commit: Fixed bug in Surround.QueryParser caused by mistranslation from Java of break <label> and continue <label>.
Date Sun, 11 Sep 2016 21:31:16 GMT
Fixed bug in Surround.QueryParser caused by mistranslation from Java of break <label>
and continue <label>.


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

Branch: refs/heads/master
Commit: bd781797e28220ea00e9e149b8b6303b720ca980
Parents: 10dc873
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Fri Sep 2 23:16:35 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Fri Sep 2 23:16:35 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.QueryParser/Surround/Parser/QueryParser.cs | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/bd781797/src/Lucene.Net.QueryParser/Surround/Parser/QueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Surround/Parser/QueryParser.cs b/src/Lucene.Net.QueryParser/Surround/Parser/QueryParser.cs
index 49ef7d4..170eb74 100644
--- a/src/Lucene.Net.QueryParser/Surround/Parser/QueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Surround/Parser/QueryParser.cs
@@ -542,7 +542,7 @@ namespace Lucene.Net.QueryParser.Surround.Parser
         public void OptionalWeights(SrndQuery q)
         {
             Token weight = null;
-        
+
             while (true)
             {
                 switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk)
@@ -797,13 +797,15 @@ namespace Lucene.Net.QueryParser.Surround.Parser
                         {
                             if (oldentry[i] != jj_expentry[i])
                             {
-                                continue;
+                                goto jj_entries_loop_continue;
                             }
                         }
                         jj_expentries.Add(jj_expentry);
-                        break;
+                        goto jj_entries_loop_break;
                     }
+                jj_entries_loop_continue: ;
                 }
+            jj_entries_loop_break:
                 if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
             }
         }


Mime
View raw message