We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ce7cf3 commit c47f40bCopy full SHA for c47f40b
lucene/core/src/java/org/apache/lucene/index/IndexingChain.java
@@ -320,8 +320,7 @@ Sorter.DocMap flush(SegmentWriteState state) throws IOException {
320
321
t0 = System.nanoTime();
322
Map<String, TermsHashPerField> fieldsToFlush = new HashMap<>();
323
- for (int i = 0; i < fieldHash.length; i++) {
324
- PerField perField = fieldHash[i];
+ for (PerField perField : fieldHash) {
325
while (perField != null) {
326
if (perField.invertState != null) {
327
fieldsToFlush.put(perField.fieldInfo.name, perField.termsHashPerField);
0 commit comments