Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-6248

Remove unused odd constants from StandardSyntaxParser.jj

    Details

    • Type: Task
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      This block of constants struct me as odd – looked like a bug to me at first:

       public class StandardSyntaxParser implements SyntaxParser, StandardSyntaxParserConstants {
      
        private static final int CONJ_NONE =0;
        private static final int CONJ_AND =2;
        private static final int CONJ_OR =2; 
      

      but it turns out they're not used at all anymore – there is a Conjunction block that is all commented out.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dweiss Dawid Weiss
                Reporter:
                dweiss Dawid Weiss
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: