Apache Lucene open-source search software
make fields private
Peter Gromov7b048c5610dc
diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/WordStorage.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/WordStorage.javaindex 1f931c96946..36e9f3fb1e0 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/WordStorage.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/WordStorage.java@@ -204,16 +204,16 @@ class WordStorage {static class Builder {private final boolean hasCustomMorphData;private final int[] hashTable;- private byte[] wordData;private final int[] chainLengths;+ private final FlagEnumerator flagEnumerator;+ private final ByteArrayDataOutput dataWriter;++ private byte[] wordData;+ private int commonPrefixLength, commonPrefixPos;+ private String currentEntry = null;private final List<char[]> group = new ArrayList<>();private final List<Integer> morphDataIDs = new ArrayList<>();- private String currentEntry = null;- private final FlagEnumerator flagEnumerator;-- private final ByteArrayDataOutput dataWriter;- int commonPrefixLength, commonPrefixPos;Builder(int wordCount, boolean hasCustomMorphData, FlagEnumerator flagEnumerator) {this.flagEnumerator = flagEnumerator;