msokolov commented on PR #11784:
URL: https://github.com/apache/lucene/pull/11784#issuecomment-1251132612

   > I was thinking a better approach would be to leave it to uses of 
NeighborArray to define maxSize, and not add +1 in the NeighborArray class 
itself as this PR suggests
   
   I guess I was thinking that since this class only has a single use, it 
wouldn't matter? But it definitely is better encapsulation to move the sizing 
logic to the place where we know how many we need. +1 to have consumers do it, 
especially since at least in one place they already do :) I'll follow up with a 
patch


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