rmuir commented on code in PR #15825:
URL: https://github.com/apache/lucene/pull/15825#discussion_r2937914159
##########
lucene/analysis/common/src/java/org/apache/lucene/analysis/cjk/CJKBigramFilter.java:
##########
@@ -333,6 +360,10 @@ private void flushUnigram() {
termAtt.setLength(len);
offsetAtt.setOffset(startOffset[index], endOffset[index]);
typeAtt.setType(SINGLE_TYPE);
+ if (!outputUnigrams && deferredPosInc > 0) {
Review Comment:
this part of the `if` seems unnecessary, since `deferredPosInc` is never
incremented unless `!outputUnigrams`.
```suggestion
if (deferredPosInc > 0) {
```
--
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]