Apache Lucene open-source search software
- Made PlainTextDictionary(Reader) public from protected
Otis Gospodnetic90be0daa46d4
diff --git a/contrib/spellchecker/src/java/org/apache/lucene/search/spell/PlainTextDictionary.java b/contrib/spellchecker/src/java/org/apache/lucene/search/spell/PlainTextDictionary.javaindex 16961563f6d..6372a4641e1 100755--- a/contrib/spellchecker/src/java/org/apache/lucene/search/spell/PlainTextDictionary.java+++ b/contrib/spellchecker/src/java/org/apache/lucene/search/spell/PlainTextDictionary.java@@ -29,8 +29,6 @@ import java.io.*;* word1<br/>* word2<br/>* word3<br/>- *- **/public class PlainTextDictionary implements Dictionary {@@ -47,9 +45,9 @@ public class PlainTextDictionary implements Dictionary {}/**- * Create a dictionary based on a reader. Used by the test case.+ * Creates a dictionary based on a reader.*/- protected PlainTextDictionary(Reader reader) {+ public PlainTextDictionary(Reader reader) {in = new BufferedReader(reader);}@@ -57,7 +55,6 @@ public class PlainTextDictionary implements Dictionary {return new fileIterator();}-final class fileIterator implements Iterator {public Object next() {if (!hasNextCalled) {@@ -77,7 +74,6 @@ public class PlainTextDictionary implements Dictionary {return (line != null) ? true : false;}-public void remove() {throw new UnsupportedOperationException();}