donnerpeter commented on code in PR #16527:
URL: https://github.com/apache/lucene/pull/16527#discussion_r3812348924
##########
lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/WordStorage.java:
##########
@@ -162,11 +162,25 @@ private static boolean hasSuggestibleEntries(int mask) {
* can be modified in any way, but may not be saved for later by the
processor
*/
void processSuggestibleWords(int minLength, int maxLength,
Consumer<FlyweightEntry> processor) {
- processAllWords(minLength, maxLength, true, processor);
+ processSuggestibleWords(minLength, maxLength, processor, () -> {});
+ }
+
+ void processSuggestibleWords(
+ int minLength, int maxLength, Consumer<FlyweightEntry> processor,
Runnable checkCanceled) {
Review Comment:
We already have the consumer here. Can the caller invoke `checkCanceled`
inside?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]