Github user mikemccand commented on a diff in the pull request:
https://github.com/apache/lucene-solr/pull/129#discussion_r94216511
--- Diff:
lucene/core/src/java/org/apache/lucene/util/graph/GraphTokenStreamFiniteStrings.java
---
@@ -174,25 +191,13 @@ private void setAccept(int state, boolean accept) {
/**
* Adds a transition to the automaton.
*/
- private void addTransition(int source, int dest, String term) {
- addTransition(source, dest, new BytesRef(term));
- }
-
- /**
- * Adds a transition to the automaton.
- */
- private void addTransition(int source, int dest, BytesRef term) {
+ private int addTransition(int source, int dest, int incr, BytesRef term)
{
if (term == null) {
--- End diff --
This can become an assert?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]