dungba88 opened a new pull request, #12646:
URL: https://github.com/apache/lucene/pull/12646

   ### Description
   
   Currently FSTCompiler and FST has a circular dependencies to each other. 
FSTCompiler creates an instance of FST, and on adding node, it delegates to 
`FST.addNode()` and passing itself as a variable. This introduces a circular 
dependency and mixes up the FST constructing and traversing code.
   
   To make matter worse, this implies one can call `FST.addNode` with an 
arbitrary FSTCompiler (as it's a parameter), but in reality it should be the 
compiler which creates the FST.
   
   This PR move the `addNode` method to FSTCompiler instead.


-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

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

Reply via email to