cavorite commented on issue #12695:
URL: https://github.com/apache/lucene/issues/12695#issuecomment-1774229048

   I'm be willing to work on this issues (as a way to get more familiar with 
Lucene's internal code base). First, I'd like to see if I'm understanding the 
work needed. 
   
   So far, it seems that the refactoring is relatively straightforward to do: 
replace the invocations of the constructor of `FSTCompiler` by creating an 
instance of `Builder` and then calling the `build()` method.  For instance, 
replacing the line:
   
   ```
   FSTCompiler<BytesRef> fstCompiler = new FSTCompiler<>(FST.INPUT_TYPE.BYTE4, 
outputs);
   ```
   
   by this one:
   
   ```
   FSTCompiler<BytesRef> fstCompiler = new 
FSTCompiler.Builder<>(FST.INPUT_TYPE.BYTE4, outputs).build();
   ```
   
   There are about 40 usages of the constructor in the repositoy (including 
modules other than `core`), so we need to replace the usages in all of them and 
also mark the constructor as deprecated (so that it can be deleted in an 
upcoming major release).
   
   Would that be all what's necessary for this issue?


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