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.java
index 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
* word2
* word3
- *
- *
*/
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();
}