From 90be0daa46d4a2338e38a6f685749a2bd830e8ee Mon Sep 17 00:00:00 2001 From: Otis Gospodnetic Date: Mon, 19 May 2008 05:45:31 +0000 Subject: [PATCH] - Made PlainTextDictionary(Reader) public from protected git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@657728 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/search/spell/PlainTextDictionary.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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(); }