Apache Lucene open-source search software
LUCENE-10596: Remove unused parameter in #getOrAddPerField (#930)
tang donghai40e9e5a00d51
diff --git a/lucene/core/src/java/org/apache/lucene/index/IndexingChain.java b/lucene/core/src/java/org/apache/lucene/index/IndexingChain.javaindex c5cfea37b0d..776cdc451d8 100644--- a/lucene/core/src/java/org/apache/lucene/index/IndexingChain.java+++ b/lucene/core/src/java/org/apache/lucene/index/IndexingChain.java@@ -590,7 +590,7 @@ final class IndexingChain implements Accountable {// build schema for each unique doc fieldfor (IndexableField field : document) {IndexableFieldType fieldType = field.fieldType();- PerField pf = getOrAddPerField(field.name(), fieldType);+ PerField pf = getOrAddPerField(field.name());if (pf.fieldGen != fieldGen) { // first time we see this field in this documentfields[fieldCount++] = pf;pf.fieldGen = fieldGen;@@ -770,7 +770,7 @@ final class IndexingChain implements Accountable {* Returns a previously created {@link PerField}, absorbing the type information from {@link* FieldType}, and creates a new {@link PerField} if this field name wasn't seen yet.*/- private PerField getOrAddPerField(String fieldName, IndexableFieldType fieldType) {+ private PerField getOrAddPerField(String fieldName) {final int hashPos = fieldName.hashCode() & hashMask;PerField pf = fieldHash[hashPos];while (pf != null && pf.fieldName.equals(fieldName) == false) {