jpountz commented on a change in pull request #1976: URL: https://github.com/apache/lucene-solr/pull/1976#discussion_r506085391
########## File path: lucene/core/src/java/org/apache/lucene/util/automaton/Automata.java ########## @@ -85,7 +85,22 @@ public static Automaton makeAnyBinary() { a.finishState(); return a; } - + + /** + * Returns a new (deterministic) automaton that accepts all binary terms except + * the empty string. + */ + public static Automaton makeAnyBinaryExceptEmpty() { + Automaton a = new Automaton(); + int s1 = a.createState(); + int s2 = a.createState(); + a.setAccept(s2, true); Review comment: Oops ignore this comment I was totally confused. :) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org